Skip to content

Commit

Permalink
fix: signup
Browse files Browse the repository at this point in the history
  • Loading branch information
mharrish7 committed Dec 12, 2023
1 parent 607873f commit 6cd7b28
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/AuthLayout/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const SignUp: React.FC<SignupFormProps> = ({ setForm }) => {
.authUserRegister({
// @ts-ignore-next-line
user_name: registerForm.userName,
user_othercollege: registerForm.userCollege,
user_othercollege: registerForm.userOtherCollege,
user_referral_code: registerForm.userReferralCode,
user_password: registerForm.userPassword,
user_email: registerForm.userEmail,
Expand Down
4 changes: 3 additions & 1 deletion src/components/Carousel/slideData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ const SlideData: React.FC<SlideDataProps> = ({ details }) => {
};

useEffect(() => {
getRegisteredEvent();
if (localStorage.getItem('token')) {
getRegisteredEvent();
}
}, []);

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/ApiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const apiConfig = new Configuration({
if (statusCode === 401 || statusCode === 403) {
localStorage.removeItem('token');
window.location.href = `${HOME_URL}/login`;
window.location.reload();
// window.location.reload();
}
if (statusCode >= 400) {
const body = await context.response.json();
Expand Down

0 comments on commit 6cd7b28

Please sign in to comment.