From a647d80efab2a80941d887edbf0124c69b7b2bf0 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Fri, 10 Feb 2017 12:02:05 -0500 Subject: [PATCH] third try to fix this little bug --- frontend/src/components/Maps/MapCard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/Maps/MapCard.js b/frontend/src/components/Maps/MapCard.js index e8c3a6ca..1ed7e492 100644 --- a/frontend/src/components/Maps/MapCard.js +++ b/frontend/src/components/Maps/MapCard.js @@ -82,7 +82,7 @@ class MapCard extends Component { render = () => { const { map, mobile, juntoState, currentUser, onRequest, onStar } = this.props - const hasMap = juntoState.liveMaps[map.id] && values(juntoState.liveMaps[map.id]).length + const hasMap = (juntoState.liveMaps[map.id] && values(juntoState.liveMaps[map.id]).length) || null const realtimeMap = juntoState.liveMaps[map.id] const hasConversation = hasMap && find(values(realtimeMap), v => v === IN_CONVERSATION) const hasMapper = hasMap && !hasConversation