Skip to content

Commit 3022515

Browse files
authored
Merge pull request #55741 from Expensify/dsilva_fixFSIssueOnMain
Adding safe check if FS is initialized before trying to shut it down
2 parents 1a8137d + 05ceb1f commit 3022515

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libs/Fullstory/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ const FS = {
143143
Session.isSupportAuthToken()
144144
) {
145145
// On web, if we started FS at some point in a browser, it will run forever. So let's shut it down if we don't want it to run.
146-
FullStory(CONST.FULL_STORY.SHUTDOWN);
146+
if (isInitialized()) {
147+
FullStory(CONST.FULL_STORY.SHUTDOWN);
148+
}
147149
return;
148150
}
149151
FullStory(CONST.FULL_STORY.RESTART);

0 commit comments

Comments
 (0)