Skip to content

Commit 647ff5f

Browse files
talvasconcelosdni
authored andcommitted
fallback to currencies
1 parent b4bbd89 commit 647ff5f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

static/js/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,11 @@ window.PageEvents = {
289289
if (this.g.user.wallets.length) {
290290
this.getTickets()
291291
this.getEvents()
292-
this.currencies = ['sats', ...g.allowedCurrencies]
292+
if (g.allowedCurrencies && g.allowedCurrencies.length) {
293+
this.currencies = ['sats', ...g.allowedCurrencies]
294+
} else {
295+
this.currencies = ['sats', ...g.currencies]
296+
}
293297
}
294298
}
295299
}

0 commit comments

Comments
 (0)