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 5690b68 commit 0c10e66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/store/user/reducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import update from 'immutability-helper';
import ActionTypes from '~/store/user/types';

const initialState = {
isMigrationAccepted: null,
isMigrationAccepted: false,
};

const userReducer = (state = initialState, action) => {
Expand Down
5 changes: 3 additions & 2 deletions src/views/MigrateYourProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ const MigrateYourProfile = () => {
const isMigrationAccepted = safe?.user?.isMigrationAccepted;

useEffect(() => {
debugger;
if (isMigrationAccepted !== undefined) {
setIsMigrateData(Boolean(isMigrationAccepted));
setIsMigrateData(isMigrationAccepted);
setIsLoading(false);
}
}, []);
}, [isMigrationAccepted]);

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

0 comments on commit 0c10e66

Please sign in to comment.