Skip to content

Commit

Permalink
bugfix #236
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamics committed Dec 12, 2023
1 parent f2c9ecc commit 96eb0d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/auth/registerForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,20 @@ interface FormData {
password: string;
name: string;
ztnetToken?: string;
token: string;
}

const RegisterForm: React.FC = () => {
const router = useRouter();
const { invite } = router.query;
const { invite } = router.query as { invite?: string };

const [loading, setLoading] = useState(false);
const [formData, setFormData] = useState<FormData>({
email: "",
password: "",
name: "",
ztnetToken: "",
token: invite,
});

const { mutate: register } = api.auth.register.useMutation();
Expand Down

0 comments on commit 96eb0d9

Please sign in to comment.