Browse Source

fix: Add index to options key in renderer

master
Dale 7 months ago
parent
commit
1546149700
Signed by: Deiru GPG Key ID: AA250C0277B927E1
2 changed files with 2 additions and 3 deletions
  1. +2
    -2
      src/playback/components/Renderer/Backlog.tsx
  2. +0
    -1
      src/test-game/game.tsx

+ 2
- 2
src/playback/components/Renderer/Backlog.tsx View File

@ -67,8 +67,8 @@ const Backlog: FC<Props> = ({ backlog, className, options = [], next, gameOver =
{entry.text}
</li>
))}
{options.map((entry) => (
<OptionItem key={entry.value}>
{options.map((entry, index) => (
<OptionItem key={`${entry.value}-${index}`}>
<a onClick={() => next(entry)}>&gt; {entry.text}</a>
</OptionItem>
))}


+ 0
- 1
src/test-game/game.tsx View File

@ -5,7 +5,6 @@ import nodes from "@/test-game/nodes";
import { DateTime } from "luxon";
import { openCustomScreen, setUI } from "@/engine/store/actions";
import CustomMenu from "./components/Menu";
import { awardSkill } from '@/engine/util/skills';
import reducer, { GameState, setGameUI } from './store';
import { Reducer, AnyAction } from 'redux';


Loading…
Cancel
Save