fix: fixed application crash when count is zero

This commit is contained in:
Savely Savianok
2024-12-30 01:27:04 +03:00
parent 14cc456d0e
commit 3c5dc5276d
2 changed files with 3 additions and 3 deletions

View File

@@ -11,8 +11,8 @@ Page(
onInit() {
this.getTOTPData().then((x) => {
console.log(x)
localStorage.setItem('TOTPs', x)
app._options.globalData.TOTPS = x
localStorage.setItem('TOTPs', x ?? [])
app._options.globalData.TOTPS = x ?? []
this.initPage();
})
.catch(() => {