From 1e0f767e73fdd49c94f98a965bdbec5ce588d698 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Thu, 28 May 2020 13:02:51 +1000 Subject: [PATCH] Fix bug with default dice for select dice modal --- src/components/map/dice/DiceButtons.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/map/dice/DiceButtons.js b/src/components/map/dice/DiceButtons.js index 0d2d3c7..561d830 100644 --- a/src/components/map/dice/DiceButtons.js +++ b/src/components/map/dice/DiceButtons.js @@ -24,7 +24,7 @@ function DiceButtons({ diceTraySize, onDiceTraySizeChange, }) { - const [currentDice, setCurrentDice] = useState(); + const [currentDice, setCurrentDice] = useState(dice[0]); useEffect(() => { const initialDice = dice[0];