mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Remove _removeBeforeUnload calls in confirm-encryption-public-key.component.js and confirm-decrypt-message.component.js (#12825)
This commit is contained in:
parent
57155dda1a
commit
74b3a3a1c8
@ -260,7 +260,6 @@ export default class ConfirmDecryptMessage extends Component {
|
||||
large
|
||||
className="request-decrypt-message__footer__cancel-button"
|
||||
onClick={async (event) => {
|
||||
this._removeBeforeUnload();
|
||||
await cancelDecryptMessage(txData, event);
|
||||
metricsEvent({
|
||||
eventOpts: {
|
||||
@ -280,7 +279,6 @@ export default class ConfirmDecryptMessage extends Component {
|
||||
large
|
||||
className="request-decrypt-message__footer__sign-button"
|
||||
onClick={async (event) => {
|
||||
this._removeBeforeUnload();
|
||||
await decryptMessage(txData, event);
|
||||
metricsEvent({
|
||||
eventOpts: {
|
||||
|
@ -163,7 +163,6 @@ export default class ConfirmEncryptionPublicKey extends Component {
|
||||
large
|
||||
className="request-encryption-public-key__footer__cancel-button"
|
||||
onClick={async (event) => {
|
||||
this._removeBeforeUnload();
|
||||
await cancelEncryptionPublicKey(txData, event);
|
||||
metricsEvent({
|
||||
eventOpts: {
|
||||
@ -183,7 +182,6 @@ export default class ConfirmEncryptionPublicKey extends Component {
|
||||
large
|
||||
className="request-encryption-public-key__footer__sign-button"
|
||||
onClick={async (event) => {
|
||||
this._removeBeforeUnload();
|
||||
await encryptionPublicKey(txData, event);
|
||||
this.context.metricsEvent({
|
||||
eventOpts: {
|
||||
|
Loading…
Reference in New Issue
Block a user