Skip to content

Commit

Permalink
hopefully fixed the disappearing ui bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tch1001 committed Oct 6, 2023
1 parent dc63645 commit fcf67c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@ export default defineComponent({
mounted() {
sdk.toSession().then(({ data }) => {
this.session = data;
this.$store.commit("update_kratos_user_id", data.identity.id);
if(data == null || data.identity == null) {
this.$store.commit("update_kratos_user_id", "guest");
}else{
this.$store.commit("update_kratos_user_id", data.identity.id);
}
sdk.createSelfServiceLogoutFlowUrlForBrowsers().then(({ data }) => {
this.logoutUrl = data.logout_url;
});
Expand Down

0 comments on commit fcf67c0

Please sign in to comment.