Skip to content

Commit

Permalink
feat(event): let ec distinguish whether booked by self
Browse files Browse the repository at this point in the history
  • Loading branch information
xfoxfu committed Jul 29, 2024
1 parent a4b65ce commit 7ef9b05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const SlotReleaseButton = ({
variant="subtle"
onClick={toggle}
disabled={!!disableMessage}
color={user.roles.includes("ec") ? "red" : "yellow"}
color={user.roles.includes("ec") && user.id !== slot.booking?.user_id ? "red" : "yellow"}
>
Release
</Button>
Expand Down

0 comments on commit 7ef9b05

Please sign in to comment.