Skip to content

Commit

Permalink
Task #217453 fix: score is getting mismatch for guest user
Browse files Browse the repository at this point in the history
  • Loading branch information
deechavhan098 committed Apr 24, 2024
1 parent 480ad8b commit f9ba326
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 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 f9ba326

Please sign in to comment.