From fa0720a54992cad8709774b4ea3e787832522f64 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 3 Jul 2023 20:17:08 -0700 Subject: [PATCH] Fix how description is tested for changes --- components/party/EditPartyModal/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/party/EditPartyModal/index.tsx b/components/party/EditPartyModal/index.tsx index b478ac71..d75daa39 100644 --- a/components/party/EditPartyModal/index.tsx +++ b/components/party/EditPartyModal/index.tsx @@ -170,6 +170,7 @@ const EditPartyModal = ({ function handleTextAreaChanged(event: React.ChangeEvent) { 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