mirror of
https://github.com/kremalicious/asi-calculator.git
synced 2024-12-22 09:23:16 +01:00
fix
This commit is contained in:
parent
2c341fd25a
commit
ca9a2c37f9
@ -45,7 +45,7 @@ export function SwapResults({
|
||||
|
||||
const tokenSelected = tokenSymbol.toLowerCase() as keyof Prices
|
||||
|
||||
const amountInUsd = amount * prices[tokenSelected].usd
|
||||
const amountInUsd = amount * prices[tokenSelected]?.usd
|
||||
const amountToOcean = amountInUsd / prices.ocean.usd
|
||||
const amountToAgix = amountInUsd / prices.agix.usd
|
||||
const amountToCudos = amountInUsd / prices.cudos.usd
|
||||
|
Loading…
Reference in New Issue
Block a user