Skip to content

Commit

Permalink
fix selected in the update
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRbl committed Oct 8, 2023
1 parent 704ac66 commit 77dad9e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/wallet_kit/lib/wallet_state/wallet_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class Wallets extends _$Wallets with PersistedState<WalletsState> {
);
}

updateAccountIsDeployed({
updateSelectedAccountIsDeployed({
required String walletId,
required int accountId,
required bool isDeployed,
Expand All @@ -147,10 +147,13 @@ class Wallets extends _$Wallets with PersistedState<WalletsState> {
walletId: wallet.copyWith(
accounts: {
...wallet.accounts,
accountId: account.copyWith(isDeployed: isDeployed),
accountId: account.copyWith(
isDeployed: isDeployed,
),
},
),
},
selected: (accountId: accountId, walletId: wallet.id),
);
}

Expand Down

0 comments on commit 77dad9e

Please sign in to comment.