From 44846c80c8db98c5cdbc03ab91be560d7f62de00 Mon Sep 17 00:00:00 2001 From: Ibrahem Khalil Date: Mon, 25 Mar 2024 21:36:24 +0200 Subject: [PATCH] Error when marking a community notification as read in the activity center #19388 (#19390) --- src/legacy/status_im/data_store/chats.cljs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/legacy/status_im/data_store/chats.cljs b/src/legacy/status_im/data_store/chats.cljs index d104f00e72..9099f2aaae 100644 --- a/src/legacy/status_im/data_store/chats.cljs +++ b/src/legacy/status_im/data_store/chats.cljs @@ -62,7 +62,10 @@ (defn <-color [value] - (if (string/starts-with? value "#") value (keyword value))) + (if (and (some? value) + (string/starts-with? value "#")) + value + (keyword value))) (defn <-rpc [chat]