Skip to content

Commit

Permalink
fix(event): slot highlight for unauthn
Browse files Browse the repository at this point in the history
  • Loading branch information
xfoxfu committed Jul 15, 2024
1 parent 29a092b commit 37955cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Net.Vatprc.Uniapi.UI.Event/src/routes/events/$event_id.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const EventComponent = () => {
const user = useUser();

const rows = slots?.map((slot) => (
<Table.Tr key={slot.id} bg={slot?.booking?.user_id === user?.id ? "green.0" : undefined}>
<Table.Tr key={slot.id} bg={user?.id && slot?.booking?.user_id === user?.id ? "green.0" : undefined}>
<Table.Td>{slot.airspace.name}</Table.Td>
<Table.Td>
<Stack gap="xs">
Expand Down

0 comments on commit 37955cc

Please sign in to comment.