Skip to content

Commit

Permalink
a few simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
David Bordoley committed Mar 8, 2024
1 parent 05fdb21 commit 66c59d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ export const capiV3tests = () =>
},
useDefaultMappings: true,
auth: {
accessToken,
accessToken: ' access123 ',
refreshToken
},
features,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const validateAppOrPixelID = (settings: Settings, event_conversion_type:

// Some configurations specify both a snapPixelID and a snapAppID. In these cases
// check the conversion type to ensure that the right id is selected and used.
const appOrPixelID = event_conversion_type === 'WEB' ? snapPixelID ?? snapAppID : snapAppID ?? snapPixelID
const appOrPixelID = event_conversion_type === 'WEB' ? snapPixelID : snapAppID

raiseMisconfiguredRequiredFieldErrorIf(
event_conversion_type === 'MOBILE_APP' && isNullOrUndefined(snapAppID),
Expand Down

0 comments on commit 66c59d9

Please sign in to comment.