Skip to content

Commit

Permalink
Added condation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud-Emad committed Feb 8, 2024
1 parent 9f71d10 commit f770a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/cards/vacationCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default {
return true
}
if (
props.vacation.user.reporting_to[0].id === props.vacation.user.id &&
props.vacation.user.reporting_to[0].id === props.vacation.user?.id &&
props.vacation.user.location.name === user.value.fullUser.location.name
) {
return true
Expand Down

0 comments on commit f770a3f

Please sign in to comment.