Skip to content

Commit e1d160a

Browse files
fix: skip closed jobs API call for guest users
1 parent 69d0efb commit e1d160a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

frontend/src/pages/Jobs.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ const isModerator = computed(() => {
137137
})
138138
139139
const getClosedJobCount = () => {
140+
if (!user.data?.name) {
141+
return
142+
}
143+
140144
const filters = {
141145
status: 'Closed',
142146
}

0 commit comments

Comments
 (0)