Skip to content

Commit

Permalink
fix flow error
Browse files Browse the repository at this point in the history
  • Loading branch information
ravishekhar committed Sep 15, 2023
1 parent 8d69558 commit c6b247f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/experiment.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ export function createExperiment(

logCheckpoint({ treatment, checkpoint, payload }) {
if (treatment.indexOf(name) !== -1) {
// $FlowFixMe
log.info(`${treatment}_${checkpoint}`, payload);
} else {
// $FlowFixMe
log.info(`${name}_${treatment}_${checkpoint}`, payload);
}

Expand Down
2 changes: 1 addition & 1 deletion src/tracking.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function setupLogger() {
// https://www.paypal.com/us/gifts/
const isLoadedInFrame = isPayPalDomain() && window.xprops;
const sdkLoadTime =
typeof loadTime === "number" ? loadTime.toString() : undefined;
typeof loadTime === "number" ? Number(loadTime) : undefined;

logger
.info(`setup_${getEnv()}`)
Expand Down

0 comments on commit c6b247f

Please sign in to comment.