From 6a0fabe4f1eeb5f8531a53e0be8fc6ece597dafb Mon Sep 17 00:00:00 2001 From: Rafe Colton Date: Mon, 25 Mar 2024 17:15:14 -0700 Subject: [PATCH] Check quickAction.action is set before trying to display in popover On a fresh group chat, `props.quickAction` is `[]`, so it enters this block and then fails to get a translation for `props.quickAction.action`, which is not set --- .../sidebar/SidebarScreen/FloatingActionButtonAndPopover.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js index 117083293b5d..1b6b8f41c1cd 100644 --- a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js +++ b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js @@ -335,7 +335,7 @@ function FloatingActionButtonAndPopover(props) { }, ] : []), - ...(props.quickAction + ...(props.quickAction && props.quickAction.action ? [ { icon: getQuickActionIcon(props.quickAction.action),