Skip to content

Commit

Permalink
Fixed bug where if session token was deleted the page did not work.
Browse files Browse the repository at this point in the history
  • Loading branch information
elrumo committed Mar 21, 2021
1 parent bef372e commit 7ab1a96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/macos-big-sur-icons/src/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -439,22 +439,22 @@ export default {
function loginParse(){
if(Parse.User.current()){
if (Parse.User.current().attributes.isAdmin) {
parent.getIconsArray();
parent.isAuth = true
}else{
parent.getIconsArray();
}
parent.getIconsArray();
} else{
Parse.User.logIn(parseUser, parsePass).then(()=>{
console.log("Signed Insss");
parent.getIconsArray();
}).catch((e)=>{
console.log("login: ", e);
handleParseError(e)
// handleParseError(e)
})
}
}
loginParse()
},
methods:{
Expand Down

1 comment on commit 7ab1a96

@vercel
Copy link

@vercel vercel bot commented on 7ab1a96 Mar 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.