From 342904890346a29c2ec810b1d6cf6bd0d3ed0eea Mon Sep 17 00:00:00 2001 From: damnnou Date: Thu, 11 Apr 2024 12:44:00 +0300 Subject: [PATCH] chore: fix syntax --- src/components/farming/ActiveFarming/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/farming/ActiveFarming/index.tsx b/src/components/farming/ActiveFarming/index.tsx index b27128d..1503129 100644 --- a/src/components/farming/ActiveFarming/index.tsx +++ b/src/components/farming/ActiveFarming/index.tsx @@ -83,8 +83,7 @@ const ActiveFarming = ({ address: farming.farming.virtualPool, }) - const rewardRate = rates ? rates[0] : 0n; - const bonusRewardRate = rates ? rates[1] : 0n; + const [rewardRate, bonusRewardRate] = rates || [0n, 0n]; const rewardRatePerDay = Number(