0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Minor UX fix on password change

refs. https://github.com/TryGhost/Team/issues/3351
This commit is contained in:
Peter Zimon 2023-06-02 15:09:06 +02:00
parent 97c3434c3d
commit 1a0c1c0cd2

View file

@ -285,7 +285,8 @@ const Password: React.FC<UserDetailProps> = ({user}) => {
if (saveState === 'saved') {
setTimeout(() => {
setSaveState('');
}, 2000);
setEditPassword(false);
}, 2500);
}
}, [saveState]);