Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
prathamceq committed Jan 20, 2024
1 parent 9e6b762 commit 4247f92
Show file tree
Hide file tree
Showing 6 changed files with 185 additions and 195 deletions.
4 changes: 2 additions & 2 deletions client/app_frontend/src/pages/auth/sign-in.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ export function SignIn() {
const json = await response.json();
console.log(json);

alert(response.status);
// alert(response.status);
if (response.status === 500 || response.status === 400) {
if (response.status === 500) {
alert("Please fill the required details.");
} else {
alert(json.msg);
// alert(json.msg);
}
} else {
localStorage.setItem("token", "toke123");
Expand Down
4 changes: 2 additions & 2 deletions client/app_frontend/src/pages/auth/sign-up.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export function SignUp() {
const json = await response.json();
// console.log(json)

alert(response.status);
// alert(response.status);
alert("Signed up successfully now you can log in");
navigate("/auth/sign-in");

Expand Down Expand Up @@ -167,7 +167,7 @@ export function SignUp() {
if (response.status === 500) {
alert("Please fill the required details.");
} else {
alert(json.msg);
// alert(json.msg);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions client/app_frontend/src/pages/dashboard/Members.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function Profile() {

var name = JSON.parse(localStorage.getItem("ghUsername"));
const fetchTheData = async () => {
alert("Fetching data...");
// alert("Fetching data...");

try {
const port = "https://naih-frontend-production.up.railway.app";
Expand All @@ -72,7 +72,7 @@ export function Profile() {
const json = await response.json();
// console.log(json)

alert(response.status);
// alert(response.status);
if (response.status === 500 || response.status === 400) {
alert("Can not fetch data");
} else {
Expand Down
Loading

0 comments on commit 4247f92

Please sign in to comment.