diff --git a/src/ui/modals.py b/src/ui/modals.py index 3b96e2f..4990904 100644 --- a/src/ui/modals.py +++ b/src/ui/modals.py @@ -35,11 +35,6 @@ async def add_item_to_embed(self) -> PollEmbed: # To avoid circular import from src.ui.button import ButtonBackend - options = { - "name": f"{NUMBER_EMOJIS[len(self.embed.fields)]} {self.new_option.value}", - "value": "**0** | ", - "inline": False, - } date_field = len(self.embed.fields) - 1 # Lmao, not ideal, but it is what it is. @@ -50,7 +45,12 @@ async def add_item_to_embed(self) -> PollEmbed: index = len(self.embed.fields) emoji = len(self.embed.fields) - options["index"] = index + options = { + "name": f"{NUMBER_EMOJIS[emoji]} {self.new_option.value}", + "value": "**0** | ", + "inline": False, + "index": index, + } self.view.add_item( ButtonBackend(