From ca9a2c37f933c039b18c57b474fe0c78393de879 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 21 Sep 2024 01:26:09 +0100 Subject: [PATCH] fix --- features/strategies/components/Swap/Results.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/strategies/components/Swap/Results.tsx b/features/strategies/components/Swap/Results.tsx index 0f28232..1446e86 100644 --- a/features/strategies/components/Swap/Results.tsx +++ b/features/strategies/components/Swap/Results.tsx @@ -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