Skip to content

Commit

Permalink
fix: correctly update Merge local data checkbox' state
Browse files Browse the repository at this point in the history
  • Loading branch information
vardan-arm committed Jun 11, 2021
1 parent abb0b65 commit 9de1b30
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,8 @@ const Authentication: FC<Props> = ({
const handleMergeLocalData = async (event: TargetedEvent<HTMLInputElement>) => {
const { checked } = event.target as HTMLInputElement;

setShouldMergeLocal(checked);
if (!checked) {
setShouldMergeLocal(checked);

const confirmResult = await confirmDialog({
text: STRING_ACCOUNT_MENU_UNCHECK_MERGE,
confirmButtonStyle: 'danger'
Expand Down

0 comments on commit 9de1b30

Please sign in to comment.