mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -05:00
fix(console): unset compare data on the sie data updated (#2377)
This commit is contained in:
parent
f875ee6970
commit
28d4414320
1 changed files with 1 additions and 1 deletions
|
@ -72,6 +72,7 @@ const SignInExperience = () => {
|
|||
})
|
||||
.json<SignInExperienceType>();
|
||||
void mutate(updatedData);
|
||||
setDataToCompare(undefined);
|
||||
await updateSettings({ signInExperienceCustomized: true });
|
||||
toast.success(t('general.saved'));
|
||||
};
|
||||
|
@ -172,7 +173,6 @@ const SignInExperience = () => {
|
|||
}}
|
||||
onConfirm={async () => {
|
||||
await saveData();
|
||||
setDataToCompare(undefined);
|
||||
}}
|
||||
>
|
||||
{dataToCompare && <SignInMethodsChangePreview before={data} after={dataToCompare} />}
|
||||
|
|
Loading…
Add table
Reference in a new issue