RoutePrice fix
This commit is contained in:
@@ -20,6 +20,8 @@ const price = computed(()=>{
|
|||||||
if( !route || !(route.pool in s.poolPrices) )
|
if( !route || !(route.pool in s.poolPrices) )
|
||||||
return ''
|
return ''
|
||||||
let p = s.poolPrices[route.pool]
|
let p = s.poolPrices[route.pool]
|
||||||
|
if( !p )
|
||||||
|
return ''
|
||||||
if( props.inverted )
|
if( props.inverted )
|
||||||
p = 1/p
|
p = 1/p
|
||||||
return p.toPrecision(props.precision)
|
return p.toPrecision(props.precision)
|
||||||
|
|||||||
Reference in New Issue
Block a user