From 89d3bfe61f25805fa7fcadff56f4324379f3a0b4 Mon Sep 17 00:00:00 2001 From: Martti Malmi Date: Sun, 12 Feb 2023 22:10:34 +0200 Subject: [PATCH] !profile -> return --- src/js/views/Profile.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/js/views/Profile.js b/src/js/views/Profile.js index 285a4108..6a9ff80b 100644 --- a/src/js/views/Profile.js +++ b/src/js/views/Profile.js @@ -372,6 +372,9 @@ class Profile extends View { Nostr.getProfile( address, (profile) => { + if (!profile) { + return; + } if (profile.nip05 && profile.nip05valid) { // replace url and history entry with iris.to/${profile.nip05} or if nip is user@iris.to, just iris.to/${user} const nip05 = profile.nip05;