Skip to content

Commit

Permalink
Fixing duty manage
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeyUsersREC committed Jan 21, 2024
1 parent 2335020 commit 62987bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -6119,6 +6119,9 @@ async def on_duty_button(self, interaction: discord.Interaction, _: discord.Butt
color=blank_color
), ephemeral=True)

if self.state == 'on' or self.state == 'break':
return await self.cycle_ui(self.state, interaction.message)


object_id = await self.bot.shift_management.add_shift_by_user(
interaction.user,
Expand Down

0 comments on commit 62987bf

Please sign in to comment.