Fix bug with default dice for select dice modal

This commit is contained in:
Mitchell McCaffrey 2020-05-28 13:02:51 +10:00
parent fc8c65e525
commit 1e0f767e73

View File

@ -24,7 +24,7 @@ function DiceButtons({
diceTraySize,
onDiceTraySizeChange,
}) {
const [currentDice, setCurrentDice] = useState();
const [currentDice, setCurrentDice] = useState(dice[0]);
useEffect(() => {
const initialDice = dice[0];