Skip to content

Commit

Permalink
Merge pull request #31903 from tienifr/fix/30839
Browse files Browse the repository at this point in the history
fix: 30839 All of the IOU chats disappear when I do the same IOU and turn the connection on
  • Loading branch information
nkuoch committed Dec 4, 2023
2 parents 520622f + 521d976 commit 5bd6d8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/home/report/ReportActionsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ function ReportActionsView(props) {
const isReportFullyVisible = useMemo(() => getIsReportFullyVisible(isFocused), [isFocused]);

const openReportIfNecessary = () => {
const createChatError = _.get(props.report, ['errorFields', 'createChat']);
// If the report is optimistic (AKA not yet created) we don't need to call openReport again
if (props.report.isOptimisticReport) {
if (props.report.isOptimisticReport || !_.isEmpty(createChatError)) {
return;
}

Expand Down

0 comments on commit 5bd6d8c

Please sign in to comment.