File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -293,6 +293,9 @@ export default class SignTransactionLedger extends Vue {
293
293
balance: (senderContract || signer ).balance ,
294
294
};
295
295
296
+ // If user left this view in the mean time, don't continue signing / sending the transaction
297
+ if (this .isDestroyed ) return ;
298
+
296
299
const transactionInfo = {
297
300
sender: (senderContract || signer ).address ,
298
301
senderType: senderContract ? senderContract .type : Nimiq .Account .Type .BASIC ,
@@ -321,6 +324,7 @@ export default class SignTransactionLedger extends Vue {
321
324
validityStartHeight ,
322
325
}, signer .path , senderAccount .keyId );
323
326
} catch (e ) {
327
+ if (this .isDestroyed ) return ; // user is not on this view anymore
324
328
// If cancelled and not expired, handle the exception. Otherwise just keep the ledger ui / expiry error
325
329
// message displayed.
326
330
if (this .state !== SignTransactionLedger .State .EXPIRED
You can’t perform that action at this time.
0 commit comments