Encryption tab: display correct encryption panel when user cancels the reset identity flow (#29216)
* fix(encryption settings): check encryption state when user cancels the reset identity flow * test(encryption settings): add test to check encryption state when user cancels the reset identity flow
This commit is contained in:
@@ -102,20 +102,12 @@ export function EncryptionUserSettingsTab({ initialState = "loading" }: Encrypti
|
||||
);
|
||||
break;
|
||||
case "reset_identity_compromised":
|
||||
content = (
|
||||
<ResetIdentityPanel
|
||||
variant="compromised"
|
||||
onCancelClick={() => setState("main")}
|
||||
onFinish={() => setState("main")}
|
||||
/>
|
||||
);
|
||||
break;
|
||||
case "reset_identity_forgot":
|
||||
content = (
|
||||
<ResetIdentityPanel
|
||||
variant="forgot"
|
||||
onCancelClick={() => setState("main")}
|
||||
onFinish={() => setState("main")}
|
||||
variant={state === "reset_identity_compromised" ? "compromised" : "forgot"}
|
||||
onCancelClick={checkEncryptionState}
|
||||
onFinish={checkEncryptionState}
|
||||
/>
|
||||
);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user