Skip to content

Commit

Permalink
Check quickAction.action is set before trying to display in popover
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rafecolton committed Mar 26, 2024
1 parent 1b0fe6d commit 6a0fabe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ function FloatingActionButtonAndPopover(props) {
},
]
: []),
...(props.quickAction
...(props.quickAction && props.quickAction.action
? [
{
icon: getQuickActionIcon(props.quickAction.action),
Expand Down

0 comments on commit 6a0fabe

Please sign in to comment.