Fix how description is tested for changes
This commit is contained in:
parent
6ff0258f60
commit
fa0720a549
1 changed files with 2 additions and 2 deletions
|
|
@ -170,6 +170,7 @@ const EditPartyModal = ({
|
|||
|
||||
function handleTextAreaChanged(event: React.ChangeEvent<HTMLDivElement>) {
|
||||
event.preventDefault()
|
||||
setDescription(event.target.innerHTML)
|
||||
let newErrors = errors
|
||||
setErrors(newErrors)
|
||||
}
|
||||
|
|
@ -281,8 +282,7 @@ const EditPartyModal = ({
|
|||
// Methods: Modification checking
|
||||
function hasBeenModified() {
|
||||
const nameChanged = name !== party.name
|
||||
const descriptionChanged =
|
||||
descriptionInput.current?.innerHTML !== party.description
|
||||
const descriptionChanged = description !== party.description
|
||||
const raidChanged = raid !== party.raid
|
||||
const chargeAttackChanged = chargeAttack !== party.chargeAttack
|
||||
const fullAutoChanged = fullAuto !== party.fullAuto
|
||||
|
|
|
|||
Loading…
Reference in a new issue