Skip to content

Commit

Permalink
Merge pull request #42646 from Expensify/dsilva_fixbuildIssuesOnMain
Browse files Browse the repository at this point in the history
Using OnyxEntry instead of explicit type
  • Loading branch information
puneetlath authored May 27, 2024
2 parents 62d051a + 578a328 commit 9a87ce9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/Fullstory/index.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const FS = {
* If the metadata is null or the email is 'undefined', the user identity is anonymized.
* If the metadata contains an accountID, the user identity is defined with it.
*/
fsIdentify: (metadata: UserMetadata | null) => {
fsIdentify: (metadata: OnyxEntry<UserMetadata>) => {
if (!metadata?.accountID) {
// anonymize FullStory user identity metadata
FullStory.anonymize();
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Fullstory/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const FS = {
* If the metadata does not contain an email, the user identity is anonymized.
* If the metadata contains an accountID, the user identity is defined with it.
*/
fsIdentify: (metadata: UserMetadata | null) => {
fsIdentify: (metadata: OnyxEntry<UserMetadata>) => {
if (!metadata?.accountID) {
// anonymize FullStory user identity metadata
FS.anonymize();
Expand Down

0 comments on commit 9a87ce9

Please sign in to comment.