From 1903d7a381ef746ceb869a688179ba861f011f9d Mon Sep 17 00:00:00 2001 From: Aleksander Rem Date: Wed, 2 Nov 2022 23:53:14 +0100 Subject: [PATCH] Fixed PR comments --- .../configure-wallet.component.html | 13 ++----------- .../configure-wallet/configure-wallet.component.ts | 8 ++++---- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/src/app/components/configure-wallet/configure-wallet.component.html b/src/app/components/configure-wallet/configure-wallet.component.html index b929e44..058f682 100644 --- a/src/app/components/configure-wallet/configure-wallet.component.html +++ b/src/app/components/configure-wallet/configure-wallet.component.html @@ -1,7 +1,7 @@

Configure Wallet

-
-
+
+
@@ -11,15 +11,6 @@ Without it, any funds you have will become completely unrecoverable!

-
-
-
-
-

- You are about to configure a new wallet, which will disconnect your Ledger device from Nault
- If you need to use the Ledger wallet later, simply import your device again. -

-
diff --git a/src/app/components/configure-wallet/configure-wallet.component.ts b/src/app/components/configure-wallet/configure-wallet.component.ts index 69cf393..913dec0 100644 --- a/src/app/components/configure-wallet/configure-wallet.component.ts +++ b/src/app/components/configure-wallet/configure-wallet.component.ts @@ -190,10 +190,10 @@ export class ConfigureWalletComponent implements OnInit { const UIkit = window['UIkit']; try { - if (!this.walletService.isLedgerWallet()) { - const msg = '


You are about to configure a new wallet, which will replace your currently configured wallet.

' + this.translocoService.translate('reset-wallet.before-continuing-make-sure-you-have-saved-the-nano-seed') + '

' + this.translocoService.translate('reset-wallet.you-will-not-be-able-to-recover-the-funds-without-a-backup') + '


'; - await UIkit.modal.confirm(msg); - } + const msg = this.walletService.isLedgerWallet() + ? '


You are about to configure a new wallet, which will disconnect your Ledger device from Nault.

If you need to use the Ledger wallet, simply import your device again.


' + : '


You are about to configure a new wallet, which will replace your currently configured wallet.

' + this.translocoService.translate('reset-wallet.before-continuing-make-sure-you-have-saved-the-nano-seed') + '

' + this.translocoService.translate('reset-wallet.you-will-not-be-able-to-recover-the-funds-without-a-backup') + '


'; + await UIkit.modal.confirm(msg); return true; } catch (err) { if (!this.walletService.isLedgerWallet()) {