feat: add comment

This commit is contained in:
Zamitto 2024-07-16 21:51:42 -03:00
parent e55dc20c7d
commit 004ccd0db5

View file

@ -29,6 +29,7 @@ export const UserFriendModalAddFriend = ({
setIsAddingFriend(true); setIsAddingFriend(true);
sendFriendRequest(friendCode) sendFriendRequest(friendCode)
.then(() => { .then(() => {
// TODO: add validation for this input?
setFriendCode(""); setFriendCode("");
}) })
.catch(() => { .catch(() => {
@ -51,6 +52,7 @@ export const UserFriendModalAddFriend = ({
const handleClickSeeProfile = () => { const handleClickSeeProfile = () => {
resetAndClose(); resetAndClose();
// TODO: add validation for this input?
navigate(`/user/${friendCode}`); navigate(`/user/${friendCode}`);
}; };