From 937abe6ef07c7352f280cb6cb2a1ded4bdaa19fc Mon Sep 17 00:00:00 2001 From: Mikhail Petrov Date: Wed, 4 Sep 2024 18:06:25 +0300 Subject: [PATCH] web: Add misconfigured connection warning for all wallets, closes #212 Signed-off-by: Mikhail Petrov --- src/Profile.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Profile.js b/src/Profile.js index 6eceee4..3e06b6d 100644 --- a/src/Profile.js +++ b/src/Profile.js @@ -176,6 +176,12 @@ const Profile = ({
Check web app configuration or try later
)} + {walletData.net.toLowerCase().indexOf(activeNet.toLowerCase()) === -1 && ( + +
{`Сonnected wallet uses ${walletData.net} network`}
+
{`Panel is configured for ${activeNet}, mismatching networks can lead to incorrect behavior.`}
+
+ )} {formatAddress(walletData.account.address)}