major refactor of web store into vue setup style declaration; reactivity debugging; order view has known refresh issues

This commit is contained in:
Tim Olson
2023-11-27 00:52:17 -04:00
parent 41457b85f5
commit d2db5dc4f7
24 changed files with 545 additions and 364 deletions

View File

@@ -18,9 +18,12 @@ const props = defineProps({
const price = computed(()=>{
const route = props.route;
if( !route || !(route.pool in s.poolPrices) )
if( !route )
return ''
let p = s.poolPrices[route.pool]
const routeKey = [route.chainId, route.pool]
if( !(routeKey in s.poolPrices) )
return ''
let p = s.poolPrices[routeKey]
// console.log('pool price is',typeof p, p)
if( !p )
return ''