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(() => {
|
||||
setRings({
|
||||
1: gridCharacter.over_mastery[0],
|
||||
2: gridCharacter.over_mastery[1],
|
||||
3: gridCharacter.over_mastery[2],
|
||||
4: gridCharacter.over_mastery[3],
|
||||
})
|
||||
if (gridCharacter.over_mastery) {
|
||||
setRings({
|
||||
1: gridCharacter.over_mastery[0],
|
||||
2: gridCharacter.over_mastery[1],
|
||||
3: gridCharacter.over_mastery[2],
|
||||
4: gridCharacter.over_mastery[3],
|
||||
})
|
||||
}
|
||||
}, [gridCharacter])
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue