Skip to content

Commit

Permalink
Merge pull request #39 from deepali-chavhan/all-1.0
Browse files Browse the repository at this point in the history
Task #217453 fix: score is getting mismatch for guest user
  • Loading branch information
gouravmore authored Apr 24, 2024
2 parents 480ad8b + 2737deb commit b54d473
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,14 @@ const App = () => {
const fp = await FingerprintJS.load();

const { visitorId } = await fp.get();

localStorage.setItem('did', visitorId);
if (!localStorage.getItem('did')) {
localStorage.setItem('did', visitorId);
}
initService();
};

setFp();
}, []);
}, []);

return (
<StyledEngineProvider injectFirst>
Expand Down

0 comments on commit b54d473

Please sign in to comment.