diff --git a/src/components/WelcomeDialog.vue b/src/components/WelcomeDialog.vue index ede51923..8636e59e 100644 --- a/src/components/WelcomeDialog.vue +++ b/src/components/WelcomeDialog.vue @@ -1,5 +1,12 @@ diff --git a/src/stores/mints.js b/src/stores/mints.js index b021719a..1f62362c 100644 --- a/src/stores/mints.js +++ b/src/stores/mints.js @@ -168,24 +168,33 @@ export const useMintsStore = defineStore("mints", { } notifySuccess("Mint removed."); }, - restoreFromBackup: function(backup) { - if(!backup || !backup["cashu.welcomeDialogSeen"]) - { + restoreFromBackup: function (backup) { + if (!backup || !backup["cashu.welcomeDialogSeen"]) { notifyError("Unrecognized Backup Format!"); - } - else - { - localStorage.setItem("cashu.welcomeDialogSeen", backup["cashu.welcomeDialogSeen"]); + } else { + localStorage.setItem( + "cashu.welcomeDialogSeen", + backup["cashu.welcomeDialogSeen"] + ); localStorage.setItem("cashu.theme", backup["cashu.theme"]); localStorage.setItem("cashu.mints", backup["cashu.mints"]); localStorage.setItem("cashu.keysets", backup["cashu.keysets"]); localStorage.setItem("cashu.keys", backup["cashu.keys"]); localStorage.setItem("cashu.proofs", backup["cashu.proofs"]); - localStorage.setItem("cashu.historyTokens", backup["cashu.historyTokens"]); - localStorage.setItem("cashu.activeMintUrl", backup["cashu.activeMintUrl"]); - localStorage.setItem("cashu.activeProofs", backup["cashu.activeProofs"]); + localStorage.setItem( + "cashu.historyTokens", + backup["cashu.historyTokens"] + ); + localStorage.setItem( + "cashu.activeMintUrl", + backup["cashu.activeMintUrl"] + ); + localStorage.setItem( + "cashu.activeProofs", + backup["cashu.activeProofs"] + ); - notifySuccess("Backup Successfully Restored!"); + notifySuccess("Backup successfully restored!"); } }, assertMintError: function (response, verbose = true) {