Skip to content

Commit

Permalink
fix(mobile): fix loadBatteryConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
voloshinskii committed May 13, 2024
1 parent b8233fe commit 8460d36
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/mobile/src/core/BatterySend/BatterySend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const BatterySend: React.FC<BatterySendProps> = ({ route }) => {
messages: [
{
amount: AmountFormatter.toNano(parsedAmount, rechargeMethod.decimals),
address: tk.wallet.battery.state.data.fundReceiver!,
address: tk.wallet.battery.fundReceiver!,
payload: commentCell.toBoc().toString('base64'),
},
],
Expand Down
2 changes: 0 additions & 2 deletions packages/mobile/src/wallet/Wallet/WalletContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ export class WalletContent extends WalletBase {
this.staking.load(),
this.subscriptions.load(),
this.battery.load(),
this.battery.loadBatteryConfig(),
this.activityList.load(),
this.cards.load(),
]);
Expand All @@ -191,7 +190,6 @@ export class WalletContent extends WalletBase {
this.staking.reload(),
this.subscriptions.reload(),
this.battery.load(),
this.battery.loadBatteryConfig(),
this.activityList.reload(),
this.cards.load(),
]);
Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/src/wallet/managers/BatteryManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export class BatteryManager {
}

public async load() {
return this.fetchBalance();
return await Promise.all([this.fetchBalance(), this.loadBatteryConfig()]);
}

public async rehydrate() {
Expand Down

0 comments on commit 8460d36

Please sign in to comment.