fix: correct parameter order in resetPassword call
This commit is contained in:
@@ -26,7 +26,7 @@ export const ResetPassword: React.FC = () => {
|
|||||||
setError('');
|
setError('');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await resetPassword(token, password);
|
await resetPassword(password, token);
|
||||||
setIsSuccess(true);
|
setIsSuccess(true);
|
||||||
setTimeout(() => navigate('/login'), 3000);
|
setTimeout(() => navigate('/login'), 3000);
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user