From 14734c6f178ff5c3be1f4afa8f8a07af437c1322 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 7 Jan 2023 23:39:25 -0800 Subject: handle undefined pubkeys for avatars --- src/components/Avatar.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components') diff --git a/src/components/Avatar.svelte b/src/components/Avatar.svelte index 05b2c63b..75d39d9f 100644 --- a/src/components/Avatar.svelte +++ b/src/components/Avatar.svelte @@ -14,7 +14,7 @@ '/api/public/' + (user?.profile ? user.uuid + '-profile.webp' - : 'punks/' + punk(user?.pubkey || parseInt(Math.random() * 255).toString(16))); + : 'punks/' + punk(user?.pubkey)); -- cgit v1.2.3