fix: swap 'Merge Local Data' confirm prompt actions

This commit is contained in:
Baptiste Grob
2020-10-12 12:59:48 +02:00
parent f814e32d16
commit 637b1aeb2d

View File

@@ -279,16 +279,14 @@ class AccountMenuCtrl extends PureViewCtrl<{}, AccountMenuState> {
async mergeLocalChanged() { async mergeLocalChanged() {
if (!this.getState().formData.mergeLocal) { if (!this.getState().formData.mergeLocal) {
if (await confirmDialog({ this.setFormDataState({
mergeLocal: !(await confirmDialog({
text: STRING_ACCOUNT_MENU_UNCHECK_MERGE, text: STRING_ACCOUNT_MENU_UNCHECK_MERGE,
confirmButtonStyle: 'danger' confirmButtonStyle: 'danger'
})) { }))
this.setFormDataState({
mergeLocal: true
}); });
} }
} }
}
openPasswordWizard() { openPasswordWizard() {
this.close(); this.close();