bug: ignore empty relay list

This commit is contained in:
Kieran 2023-01-22 14:42:19 +00:00
parent e830b39edf
commit 7835ad8562
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -70,7 +70,7 @@ export default function useLoginFeed() {
.map(a => a!);
for (let cl of contactList) {
if (cl.content !== "") {
if (cl.content !== "" && cl.content !== "{}") {
let relays = JSON.parse(cl.content);
dispatch(setRelays({ relays, createdAt: cl.created_at }));
}