Skip to content

Commit

Permalink
Merge pull request #29792 from bernhardoj/fix/29747
Browse files Browse the repository at this point in the history
Fix CreateChatReport is still called when visiting /money2020 for the second time

(cherry picked from commit 6d937cc)
  • Loading branch information
mountiny authored and OSBotify committed Oct 17, 2023
1 parent 62b2bdf commit 85eee16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/DemoActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Onyx.connect({

function runMoney2020Demo() {
// Try to navigate to existing demo chat if it exists in Onyx
const money2020AccountID = Number(Config ? Config.EXPENSIFY_ACCOUNT_ID_MONEY2020 : 15864555);
const money2020AccountID = Number(lodashGet(Config, 'EXPENSIFY_ACCOUNT_ID_MONEY2020', 15864555));
const existingChatReport = ReportUtils.getChatByParticipants([money2020AccountID]);
if (existingChatReport) {
// We must call goBack() to remove the demo route from nav history
Expand Down

0 comments on commit 85eee16

Please sign in to comment.