From 1a7ddb7ea669dcf49cdbade5286b1003d1fb7dbc Mon Sep 17 00:00:00 2001 From: Shiba <44804845+DeepDoge@users.noreply.github.com> Date: Fri, 1 Jul 2022 11:16:39 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=A3=20small=20bug=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/popup/main.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/pages/popup/main.tsx b/src/pages/popup/main.tsx index 1b9e319..ad55ac7 100644 --- a/src/pages/popup/main.tsx +++ b/src/pages/popup/main.tsx @@ -68,11 +68,15 @@ function WatchOnLbryPopup(params: { profile: Awaited loads(generateProfileAndSetNickname(dialogManager)).then(() => renderPopup())} className={`button active`}> Change Nickname - - await dialogManager.confirm("This will delete your keypair from this device.\nStill wanna continue?\n\nNOTE: Without keypair you can't purge your data online.\nSo if you wish to purge, please use purging instead.") - && resetProfileSettings() - && renderPopup() - } + { + if (!await dialogManager.confirm("This will delete your keypair from this device." + + "\nStill wanna continue?" + + "\n\nNOTE: Without keypair you can't purge your data online." + + "\nSo if you wish to purge, please use purging instead.")) return + resetProfileSettings() + renderPopup() + + }} className={`button`} > Forget/Logout