Skip to content

Commit

Permalink
refactor/#359: 코드 간소화
Browse files Browse the repository at this point in the history
  • Loading branch information
HyeryongChoi committed Aug 31, 2023
1 parent 8c3679d commit 1ab6445
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/hooks/petProfile/usePetProfileEdition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ export const usePetProfileEdition = () => {
return { ...prev, name: petName };
});

if (isValidName(petName)) setIsValidNameInput(true);
if (!isValidName(petName)) setIsValidNameInput(false);
setIsValidNameInput(isValidName(petName));
};

const onChangeAge = (e: ChangeEvent<HTMLSelectElement>) => {
Expand Down

0 comments on commit 1ab6445

Please sign in to comment.