On Settings save reset key activation tab defaults

This fixes unexpected modal opening and wrong "email sent" message edge case.

[MAILPOET-2831]
This commit is contained in:
Jan Jakeš
2020-04-20 13:37:34 +02:00
committed by Veljko V
parent eae9938a1f
commit 0427977f8c

View File

@@ -53,6 +53,10 @@ export function* saveSettings() {
return { type: 'SAVE_FAILED', error };
}
yield { type: 'TRACK_SETTINGS_SAVED' };
yield updateKeyActivationState({
congratulatoryMssEmailSentTo: null,
fromAddressModalCanBeShown: false,
});
yield setSettings(res.data);
return { type: 'SAVE_DONE' };
}