problem: we are querying zap providers too often

This commit is contained in:
gsovereignty
2024-08-18 00:00:47 +08:00
parent 197ba82c0c
commit ea0ea6777b
4 changed files with 24 additions and 16 deletions

View File

@@ -72,7 +72,7 @@
}
})
.catch((e) => {
if (e.pubkey && $currentUser && e.pubkey == $currentUser.pubkey) {
if (e && e.pubkey && $currentUser && e.pubkey == $currentUser.pubkey) {
alert(
'Nostrocket could not validate that the zap receipts published on your behalf are legitimate, this usually means we could not query your lightning service provider API. Consider switching to a lightning service provider that is known to work (e.g. getAlby).'
);