Skip to content

Commit

Permalink
fix: modified register confirmation function
Browse files Browse the repository at this point in the history
  • Loading branch information
hustle2live committed Oct 8, 2024
1 parent 47bfcdc commit 73fef01
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/frontend/src/components/auth/auth-confirm.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ const AuthConfirmPage: React.FunctionComponent = () => {
const [searchParams] = useSearchParams();
const [message, setMessage] = useState(null);

const handlePasswordReset = async (): Promise<void> => {
const request = await userService.verificationConfirm({
email: searchParams.get('email'),
token: searchParams.get('token'),
});
useEffect(() => {
const handlePasswordReset = async (): Promise<void> => {
const request = await userService.verificationConfirm({
email: searchParams.get('email'),
token: searchParams.get('token'),
});

setMessage(request?.message ?? false);
};
setMessage(request?.message ?? null);
};

useEffect(() => {
handlePasswordReset();
}, []);

Expand Down

0 comments on commit 73fef01

Please sign in to comment.