From 11577a6b617a47e86511e5fdc764a323de381c64 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Thu, 6 Jul 2023 17:08:37 -0700 Subject: [PATCH] Ensure name modification works right Needed a null check? for some reason? --- components/party/EditPartyModal/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/party/EditPartyModal/index.tsx b/components/party/EditPartyModal/index.tsx index 970911cf..26103c51 100644 --- a/components/party/EditPartyModal/index.tsx +++ b/components/party/EditPartyModal/index.tsx @@ -297,7 +297,8 @@ const EditPartyModal = ({ // Methods: Modification checking function hasBeenModified() { const nameChanged = - name !== party.name && !(name === '' && party.name === undefined) + name !== party.name && + !(name === '' && (party.name === undefined || party.name === null)) const descriptionChanged = description !== party.description && !(description === '' && party.description === undefined)