Skip to content

Commit

Permalink
Remove console.log warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mikozet committed Jul 8, 2024
1 parent 07907e9 commit b0bb455
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/MigrateYourProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ const MigrateYourProfile = () => {
const user = useSelector((state) => state.user);
const isMigrationAccepted = user?.isMigrationAccepted;

useEffect(async () => {
useEffect(() => {
if (isMigrationAccepted !== undefined && isMigrationAccepted !== null) {
setIsMigrateData(isMigrationAccepted);
setIsLoading(false);
} else {
dispatch(initializeUser());
}
}, [isMigrationAccepted]);
}, [isMigrationAccepted]); // eslint-disable-line react-hooks/exhaustive-deps

const handleOnChangeRadio = (event) => {
setIsMigrateData(event.target.value === 'true');
Expand Down

0 comments on commit b0bb455

Please sign in to comment.