feat: show error msg

This commit is contained in:
karishmas6
2024-09-25 13:16:58 +05:30
parent 6a9b2f682a
commit 0a99393478

View File

@@ -43,7 +43,7 @@ const Register = () => {
window.localStorage.setItem('user', JSON.stringify(data));
navigate('/');
} catch (err: any) {
notify('error', err.response.data.message);
notify('error', err.response.data || 'Registration Failed. Please try again.');
} finally {
setLoading(false);
}