ACheck for new password different than old password. Fixed typo in route. Updated error msg
This commit is contained in:
1 parent
6457f9f1ac
commit
80af000a0c
3 files changed
+10
-2
No files matched your search
@@ -0,0 +1,2 @@
|
||||
import { toast } from "react-toastify";
|
||||
export default (message) => toast(message);
|
||||
@@ -40,10 +40,10 @@ const SetNewPassword = () => {
|
||||
...form,
|
||||
recoveryToken: token,
|
||||
});
|
||||
navigate("/new-passsword-confirmed");
|
||||
navigate("/new-password-confirmed");
|
||||
} catch (error) {
|
||||
// TODO display error (Toast?)
|
||||
alert(error);
|
||||
alert(error.response.data.msg);
|
||||
} finally {
|
||||
setIsLoading(false);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user