Skip to content

Commit

Permalink
Merge pull request #100 from getAlby/fix/notifications-check
Browse files Browse the repository at this point in the history
fix: do not crash if NWC connection does not support notifications
  • Loading branch information
rolznz committed Sep 10, 2024
2 parents 1a08bed + fc9de90 commit e162a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/settings/wallets/WalletConnection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function WalletConnection() {
});
const info = await nwcClient.getInfo();
const capabilities = [...info.methods] as Nip47Capability[];
if (info.notifications.length) {
if (info.notifications?.length) {
capabilities.push("notifications");
}
console.log("NWC connected", info);
Expand Down

0 comments on commit e162a17

Please sign in to comment.