Add invite object for clarity

This commit is contained in:
Alex Holliday committed 2024-08-26 17:46:56 -07:00
1 parent ac37211e32
commit ce542879e7
1 file changed
+2 -1
+2 -1
View File
@@ -454,7 +454,8 @@ const Register = ({ isSuperAdmin }) => {
if (token !== undefined) {
try {
const res = await networkService.verifyInvitationToken(token);
const { role, email, teamId } = res.data.data;
const invite = res.data.data;
const { role, email, teamId } = invite;
setForm({ ...form, email, role, teamId });
} catch (error) {
navigate("/register", { replace: true });