From 7548ef26500959537dc82c9bb7ab5f6f155430b0 Mon Sep 17 00:00:00 2001 From: Luka Jeran Date: Fri, 5 Jul 2024 01:41:44 +0200 Subject: [PATCH] Handle repeated AddToMetaMask clicks --- src/AddToMetaMask.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AddToMetaMask.tsx b/src/AddToMetaMask.tsx index a1605dc540..e143b6e5ef 100644 --- a/src/AddToMetaMask.tsx +++ b/src/AddToMetaMask.tsx @@ -33,6 +33,8 @@ const AddToMetaMask = (props: { blockExplorerUrls: props.be, }, ], + }).then(response => { + if (response === null) alert('Added') }) }} >