0
Fork 0
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:
Xiao Yijun 2022-11-10 16:00:59 +08:00 committed by GitHub
parent f875ee6970
commit 28d4414320
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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} />}