Ensure name modification works right
Needed a null check? for some reason?
This commit is contained in:
parent
abd98d27c9
commit
11577a6b61
1 changed files with 2 additions and 1 deletions
|
|
@ -297,7 +297,8 @@ const EditPartyModal = ({
|
||||||
// Methods: Modification checking
|
// Methods: Modification checking
|
||||||
function hasBeenModified() {
|
function hasBeenModified() {
|
||||||
const nameChanged =
|
const nameChanged =
|
||||||
name !== party.name && !(name === '' && party.name === undefined)
|
name !== party.name &&
|
||||||
|
!(name === '' && (party.name === undefined || party.name === null))
|
||||||
const descriptionChanged =
|
const descriptionChanged =
|
||||||
description !== party.description &&
|
description !== party.description &&
|
||||||
!(description === '' && party.description === undefined)
|
!(description === '' && party.description === undefined)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue