From 004ccd0db57304634791ecf0442d09146af45e4c Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Tue, 16 Jul 2024 21:51:42 -0300 Subject: [PATCH] feat: add comment --- .../user-friend-modal/user-friend-modal-add-friend.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/src/pages/shared-modals/user-friend-modal/user-friend-modal-add-friend.tsx b/src/renderer/src/pages/shared-modals/user-friend-modal/user-friend-modal-add-friend.tsx index 45d3bc57..f925ca65 100644 --- a/src/renderer/src/pages/shared-modals/user-friend-modal/user-friend-modal-add-friend.tsx +++ b/src/renderer/src/pages/shared-modals/user-friend-modal/user-friend-modal-add-friend.tsx @@ -29,6 +29,7 @@ export const UserFriendModalAddFriend = ({ setIsAddingFriend(true); sendFriendRequest(friendCode) .then(() => { + // TODO: add validation for this input? setFriendCode(""); }) .catch(() => { @@ -51,6 +52,7 @@ export const UserFriendModalAddFriend = ({ const handleClickSeeProfile = () => { resetAndClose(); + // TODO: add validation for this input? navigate(`/user/${friendCode}`); };