Skip to content

Commit

Permalink
bugfix with emojis
Browse files Browse the repository at this point in the history
Signed-off-by: robertsokola <[email protected]>
  • Loading branch information
TheXer committed Sep 3, 2023
1 parent 2af07a6 commit b0b7afa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ui/modals.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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(
Expand Down

0 comments on commit b0b7afa

Please sign in to comment.