fix: correctly update Merge local data checkbox' state
This commit is contained in:
@@ -210,9 +210,8 @@ const Authentication: FC<Props> = ({
|
|||||||
const handleMergeLocalData = async (event: TargetedEvent<HTMLInputElement>) => {
|
const handleMergeLocalData = async (event: TargetedEvent<HTMLInputElement>) => {
|
||||||
const { checked } = event.target as HTMLInputElement;
|
const { checked } = event.target as HTMLInputElement;
|
||||||
|
|
||||||
|
setShouldMergeLocal(checked);
|
||||||
if (!checked) {
|
if (!checked) {
|
||||||
setShouldMergeLocal(checked);
|
|
||||||
|
|
||||||
const confirmResult = await confirmDialog({
|
const confirmResult = await confirmDialog({
|
||||||
text: STRING_ACCOUNT_MENU_UNCHECK_MERGE,
|
text: STRING_ACCOUNT_MENU_UNCHECK_MERGE,
|
||||||
confirmButtonStyle: 'danger'
|
confirmButtonStyle: 'danger'
|
||||||
|
|||||||
Reference in New Issue
Block a user