Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abbi4code committed Sep 12, 2024
1 parent 6961238 commit 173afe2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions client/src/pages/Signin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,16 @@ const [Signininput, useSignininput] = useState<Signininput>({
navigate("/");
}, 300);
} else {
toast.error(res.data.msg, {
toast.error(res.data.msg[0], {
position: "top-right",
theme: "dark",
autoClose: 2000,
});
console.log(res.data.msg);
console.log(res.data.msg[0]);
}
} catch (error: any) {
console.log(error);
toast.error(error.response.data.msg[0], {
console.log(error.response.data.msg);
toast.error(error.response.data.msg, {
position: "top-right",
theme: "dark",
autoClose: 2000,
Expand Down
2 changes: 1 addition & 1 deletion server/src/routes/user.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ router.post('/signup',async(req,res)=>{
},
});
if (!existuser) {
return res.status(400).json({ msg: "user not exist" });
return res.status(400).json({ msg: "Invalid Credentials" });
}

const user = await prisma.user.findUnique({
Expand Down

0 comments on commit 173afe2

Please sign in to comment.