Skip to content

Commit

Permalink
#FE-promptStateFix
Browse files Browse the repository at this point in the history
- Changed playerState to playerState.promptState since the stateObject was changed in the backend.
  • Loading branch information
CheBato committed Dec 21, 2024
1 parent 2307387 commit 28ace51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ const BasicPrompt: React.FC<IBasicPromptProps> = ({
>
<CardContent>
<Typography variant="h6" color="#fff">
{playerState.menuTitle || "No Prompt"}
{playerState.promptState.menuTitle || "No Prompt"}
</Typography>
<Typography variant="caption" color="#fff">
{playerState.promptTitle || ""}
{playerState.promptState.promptTitle || ""}
</Typography>
<Box>
{playerState.buttons.map((button: IButtonsProps) => (
{playerState.promptState.buttons.map((button: IButtonsProps) => (
<PromptButton
key={button.arg}
button={button}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ const CardActionTray: React.FC = () => {
sx={actionContainerStyle}
>
<Typography variant="h6" sx={{ color: "white" }}>
{playerState.menuTitle}
{playerState.promptState.menuTitle}
</Typography>
<Box>
{playerState.buttons.map((button: IButtonsProps) => (
{playerState.promptState.buttons.map((button: IButtonsProps) => (
<PromptButton
key={button.arg}
button={button}
Expand Down

0 comments on commit 28ace51

Please sign in to comment.