fix: correctly update Merge local data checkbox' state

This commit is contained in:
VardanHakobyan
2021-06-11 15:04:38 +04:00
parent abb0b6595e
commit 9de1b30291

View File

@@ -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'