Skip to content

Commit

Permalink
Make trimming a performer name non-destructive...
Browse files Browse the repository at this point in the history
and not update performance aliases by default
  • Loading branch information
peolic committed Feb 4, 2022
1 parent ed5aee3 commit c3bc6ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/pages/performers/performerForm/PerformerForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ const PerformerForm: FC<PerformerProps> = ({

const changedName =
!!performer.id &&
fieldData.name !== undefined &&
performer.name.trim() !== fieldData.name;
newChanges.name !== null &&
performer.name.trim() !== newChanges.name;

useEffect(() => {
setUpdateAliases(changedName);
Expand Down

0 comments on commit c3bc6ac

Please sign in to comment.