Skip to content

Commit

Permalink
resolved shignout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
areebkhan11 committed Jul 25, 2022
1 parent e663664 commit 2c012f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/pages/ImIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ export default function ImIn() {
user = JSON.parse(user);
if (user.data?.data && user.data?.data?._id) {
if (response.data?.data?.find(usr => usr.UserID === user.data?.data?._id)) {

setButton("I am out")
setButton("i am Out")
}
}
}
Expand Down Expand Up @@ -134,7 +133,7 @@ export default function ImIn() {
{ headers: { "Authorization": `${token}` } }
)
.then(function (response) {
console.log(response.data.message, "Response")
console.log(response.data, "Response")
if (response.data.status === true) {
SetMessage({ value: response.data.message, type: "success" })
setButton("i am Out")
Expand Down

0 comments on commit 2c012f4

Please sign in to comment.