fix perform_lnurl error handling.

This commit is contained in:
fiatjaf
2020-11-11 02:40:41 -03:00
parent d4e30356c7
commit bb94dc6526
3 changed files with 20 additions and 17 deletions
+10 -6
View File
@@ -565,12 +565,16 @@ new Vue({
})
.catch(err => {
dismissAuthMsg()
this.$q.notify({
message: `Authentication failed. ${this.parse.lnurlauth.domain} says:`,
caption: err.response.data.message,
type: 'warning',
timeout: 5000
})
if (err.response.data.reason) {
this.$q.notify({
message: `Authentication failed. ${this.parse.lnurlauth.domain} says:`,
caption: err.response.data.reason,
type: 'warning',
timeout: 5000
})
} else {
LNbits.utils.notifyApiError(err)
}
})
},
deleteWallet: function (walletId, user) {