From f8be5453faaf9815f5b5d7aa28767245f4f31541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louise=20Linn=C3=A9?= Date: Fri, 6 Oct 2023 09:39:18 +0200 Subject: [PATCH] Show number of mutually trusted for all accounts, zero if none --- src/components/ProfileMini.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ProfileMini.js b/src/components/ProfileMini.js index f08f5f0b..a8b9b0e1 100644 --- a/src/components/ProfileMini.js +++ b/src/components/ProfileMini.js @@ -89,7 +89,7 @@ const ProfileMini = ({ const [isRedirect, setIsRedirect] = useState(false); - const mutualFriendsCount = connection.mutualConnections.length; + const mutualFriendsCount = connection.mutualConnections.length || 0; const handleSend = (event) => { event.stopPropagation();