Fix error when opening character w/o over mastery
This commit is contained in:
parent
2372f6f2b1
commit
e6c52c43b2
1 changed files with 8 additions and 6 deletions
|
|
@ -33,12 +33,14 @@ const RingSelect = ({ gridCharacter, sendValues }: Props) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setRings({
|
if (gridCharacter.over_mastery) {
|
||||||
1: gridCharacter.over_mastery[0],
|
setRings({
|
||||||
2: gridCharacter.over_mastery[1],
|
1: gridCharacter.over_mastery[0],
|
||||||
3: gridCharacter.over_mastery[2],
|
2: gridCharacter.over_mastery[1],
|
||||||
4: gridCharacter.over_mastery[3],
|
3: gridCharacter.over_mastery[2],
|
||||||
})
|
4: gridCharacter.over_mastery[3],
|
||||||
|
})
|
||||||
|
}
|
||||||
}, [gridCharacter])
|
}, [gridCharacter])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue