Fix bug with default dice for select dice modal
This commit is contained in:
parent
fc8c65e525
commit
1e0f767e73
@ -24,7 +24,7 @@ function DiceButtons({
|
|||||||
diceTraySize,
|
diceTraySize,
|
||||||
onDiceTraySizeChange,
|
onDiceTraySizeChange,
|
||||||
}) {
|
}) {
|
||||||
const [currentDice, setCurrentDice] = useState();
|
const [currentDice, setCurrentDice] = useState(dice[0]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const initialDice = dice[0];
|
const initialDice = dice[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user