Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikozet committed Jul 1, 2024
1 parent dffdbed commit fdf3c63
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/views/MigrateYourProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ const MigrateYourProfile = () => {

const [isMigrateData, setIsMigrateData] = useState(false);
const [isLoading, setIsLoading] = useState(true);
const safe = useSelector((state) => state.safe);
const isMigrationAccepted = safe?.user?.isMigrationAccepted;
const user = useSelector((state) => state.user);
const isMigrationAccepted = user?.isMigrationAccepted;
console.log('user', user);

useEffect(() => {
console.log('isMigrateData', isMigrateData);
Expand All @@ -64,6 +65,7 @@ const MigrateYourProfile = () => {
};

const handleOnSubmit = () => {
console.log('handleOnSubmit isMigrateData ', isMigrateData);
setIsMigrateData(isMigrateData);
dispatch(updateUserMigration(isMigrateData));
};
Expand Down

0 comments on commit fdf3c63

Please sign in to comment.