Skip to content

Commit

Permalink
only register 'MemStoreDataReady' handler once per acquireKeystoneMem…
Browse files Browse the repository at this point in the history
…StoreData
  • Loading branch information
Zarigis committed Apr 16, 2024
1 parent 5740703 commit a0643ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background/controller/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2561,7 +2561,7 @@ export class WalletController extends BaseController {
const keyringType = KEYRING_CLASS.HARDWARE.KEYSTONE;
const keyring: KeystoneKeyring = this._getKeyringByType(keyringType);
if (keyring) {
keyring.getInteraction().on(MemStoreDataReady, (request) => {
keyring.getInteraction().once(MemStoreDataReady, (request) => {
eventBus.emit(EVENTS.broadcastToUI, {
method: EVENTS.QRHARDWARE.ACQUIRE_MEMSTORE_SUCCEED,
params: {
Expand Down

0 comments on commit a0643ad

Please sign in to comment.