From bf3f82706ae359e51fb7c0a23876e079a5dc0f21 Mon Sep 17 00:00:00 2001 From: Max Voloshinskii Date: Wed, 15 May 2024 16:19:47 +0300 Subject: [PATCH] fix(mobile): Fix recharge asset logic (#856) remove unnecessary logic --- .../components/RefillBattery/RechargeMethods.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/shared/components/RefillBattery/RechargeMethods.tsx b/packages/shared/components/RefillBattery/RechargeMethods.tsx index 153d6f96f..7f2a2aaeb 100644 --- a/packages/shared/components/RefillBattery/RechargeMethods.tsx +++ b/packages/shared/components/RefillBattery/RechargeMethods.tsx @@ -45,10 +45,7 @@ export const RechargeMethods = memo(() => { (withAddressSelect?: boolean, jettonMaster?: string) => async () => { nav.navigate(AppStackRouteNames.BatterySend, { recipient: withAddressSelect ? undefined : tk.wallet.address.ton.friendly, - jettonMaster: - jettonMaster ?? hasTonBalance - ? undefined - : filteredJettonBalances[0]?.jettonAddress, + jettonMaster, }); }, [filteredJettonBalances, hasTonBalance], @@ -93,7 +90,12 @@ export const RechargeMethods = memo(() => { )} {hasAnyBalance && (