Skip to content

Commit

Permalink
Consistent undefined instead of null
Browse files Browse the repository at this point in the history
  • Loading branch information
btcjt committed Jan 18, 2025
1 parent c34b6fe commit 4bf35b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/pages/WalletPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,9 @@ export default {
showWelcomePage: function (addMintUrl) {
if (!useWelcomeStore().termsAccepted) {
useWelcomeStore().showWelcome = true;
useWelcomeStore().addMintUrl = addMintUrl;
if (addMintUrl) {
useWelcomeStore().addMintUrl = addMintUrl;
}
}
if (useWelcomeStore().showWelcome) {
this.$router.push("/welcome");
Expand Down
4 changes: 2 additions & 2 deletions src/stores/welcome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export const useWelcomeStore = defineStore("welcome", {
"cashu.welcome.termsAccepted",
false
),
addMintUrl: useLocalStorage<string | null>(
addMintUrl: useLocalStorage<string | undefined>(
"cashu.welcome.addMintUrl",
null
undefined
),
}),
getters: {
Expand Down

0 comments on commit 4bf35b8

Please sign in to comment.