parent
56fb881edd
commit
44efa3e490
1 changed files with 2 additions and 5 deletions
|
|
@ -231,9 +231,7 @@ const CharacterGrid = (props: Props) => {
|
||||||
)
|
)
|
||||||
|
|
||||||
const updateUncapLevel = (position: number, uncapLevel: number) => {
|
const updateUncapLevel = (position: number, uncapLevel: number) => {
|
||||||
if (grid.characters[position]) {
|
appState.grid.characters[position].uncap_level = uncapLevel
|
||||||
appState.grid.characters[position]!.uncap_level = uncapLevel
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function storePreviousUncapValue(position: number) {
|
function storePreviousUncapValue(position: number) {
|
||||||
|
|
@ -241,8 +239,7 @@ const CharacterGrid = (props: Props) => {
|
||||||
let newPreviousValues = { ...previousUncapValues }
|
let newPreviousValues = { ...previousUncapValues }
|
||||||
|
|
||||||
if (grid.characters[position]) {
|
if (grid.characters[position]) {
|
||||||
const character = grid.characters[position]
|
newPreviousValues[position] = grid.characters[position].uncap_level
|
||||||
newPreviousValues[position] = character ? character.uncap_level : -1
|
|
||||||
setPreviousUncapValues(newPreviousValues)
|
setPreviousUncapValues(newPreviousValues)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue