Skip to content

Commit

Permalink
fix: auth store: default object for user (#1087)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssiyad committed Apr 4, 2023
1 parent 9e60c96 commit 7b9eaff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desk/src/stores/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const useAuthStore = defineStore("auth", () => {
},
});

const user__ = computed(() => userInfo.data);
const user__ = computed(() => userInfo.data || {});
const hasDeskAccess: ComputedRef<boolean> = computed(
() => user__.value.has_desk_access
);
Expand Down

0 comments on commit 7b9eaff

Please sign in to comment.