Skip to content

Commit 0ec6d70

Browse files
fix(extension): [LW-11392] fix bind context to updateWalletMetadata for subscriptions (#1397)
1 parent 4368354 commit 0ec6d70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/browser-extension-wallet/src/lib/scripts/background/cache-wallets-address.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,7 @@ export const cacheActivatedWalletAddressSubscription = (
3636
walletManager: WalletManager<Wallet.WalletMetadata, Wallet.AccountMetadata>,
3737
walletRepository: WalletRepository<Wallet.WalletMetadata, Wallet.AccountMetadata>
3838
): void => {
39-
walletMetadataWithAddresses(walletManager, walletRepository).subscribe(walletRepository.updateWalletMetadata);
39+
walletMetadataWithAddresses(walletManager, walletRepository).subscribe((updateProps) =>
40+
walletRepository.updateWalletMetadata(updateProps)
41+
);
4042
};

0 commit comments

Comments
 (0)