Skip to content

Commit

Permalink
fix(mobile): Fix recharge asset logic (#856)
Browse files Browse the repository at this point in the history
remove unnecessary logic
  • Loading branch information
voloshinskii authored May 15, 2024
1 parent a184ebc commit bf3f827
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/shared/components/RefillBattery/RechargeMethods.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -93,7 +90,12 @@ export const RechargeMethods = memo(() => {
)}
{hasAnyBalance && (
<List.Item
onPress={handleRechargeBattery(true)}
onPress={handleRechargeBattery(
true,
filteredJettonBalances.length
? filteredJettonBalances[0].jettonAddress
: undefined,
)}
leftContent={
<Image
style={styles.icon.static}
Expand Down

0 comments on commit bf3f827

Please sign in to comment.