0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-31 22:51:25 -05:00

fix(ui): show response error toast (#604)

show response error toast
This commit is contained in:
simeng-li 2022-04-21 16:46:36 +08:00 committed by GitHub
parent 6a62e32fa5
commit 51e6ac6d62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -155,7 +155,7 @@ const CreateAccount = ({ className }: Props) => {
useEffect(() => {
// TODO: username exist error message
if (error) {
setToast(t('error.username_exists'));
setToast(error.message);
}
}, [error, i18n, setToast, t]);