Skip to content

Commit

Permalink
fix: 친구 추가 validate check 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeseon-han committed Mar 2, 2024
1 parent 291ed24 commit 77f90fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/templates/AddFriendTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const AddFriendTemplate: React.FC = () => {
};

const onAddFriend = () => {
if (friendInviteCode.length < 9) {
if (friendInviteCode.length < 8) {
setWarningVisible(true);
} else {
addFriendship.mutate({ inviteCode: friendInviteCode });
Expand Down Expand Up @@ -67,7 +67,7 @@ const AddFriendTemplate: React.FC = () => {
/>
<MiniButton label="추가" onClick={onAddFriend} variant="clickable" />
</div>
{warningVisible ? <WarningLine text="9-10자리 초대 코드를 입력해주세요." /> : null}
{warningVisible ? <WarningLine text="8-10자리 초대 코드를 입력해주세요." /> : null}
</>
}
/>
Expand Down

0 comments on commit 77f90fa

Please sign in to comment.