Skip to content

Commit 4b64f8a

Browse files
authored
Merge pull request #89484 from TaduJR/fix-Onboarding-Take-a-test-drive-doesnt-dismiss-for-Expensifail-account
fix: Onboarding - Take a test drive doesn't dismiss for Expensifail account
2 parents 8d5627f + 8f23a7d commit 4b64f8a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/components/TestDrive/TestDriveDemo.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import useResponsiveLayout from '@hooks/useResponsiveLayout';
1818
import useThemeStyles from '@hooks/useThemeStyles';
1919
import {openReport} from '@libs/actions/Report';
2020
import {completeTestDriveTask} from '@libs/actions/Task';
21+
import {setSelfTourViewed} from '@libs/actions/Welcome';
2122
import Log from '@libs/Log';
2223
import Navigation from '@libs/Navigation/Navigation';
2324
import {isAdminRoom} from '@libs/ReportUtils';
@@ -58,6 +59,8 @@ function TestDriveDemo() {
5859
return;
5960
}
6061
if (!viewTourTaskReport) {
62+
// Fallback for accounts with no viewTour task — otherwise selfTourViewed never gets set.
63+
setSelfTourViewed();
6164
if (conciergeReportID && !hasCalledOpenReportRef.current) {
6265
hasCalledOpenReportRef.current = true;
6366
openReport({reportID: conciergeReportID, introSelected, betas});

0 commit comments

Comments
 (0)