From d5de0dd67e2abb1c7e6ba7022411b5301df7a666 Mon Sep 17 00:00:00 2001 From: OGPoyraz Date: Thu, 17 Aug 2023 09:36:30 +0200 Subject: [PATCH] Fix infinite rerender on network change while active signature request (#20473) --- app/scripts/metamask-controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 43cb9e2bb..7063afea2 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -1447,6 +1447,7 @@ export default class MetamaskController extends EventEmitter { this.encryptionPublicKeyController.clearUnapproved(); this.decryptMessageController.clearUnapproved(); this.signatureController.clearUnapproved(); + this.approvalController.clear(); }, );