Skip to content

Commit

Permalink
chore: Refactor Chat.tsx to initialize addFriendInfo with empty data …
Browse files Browse the repository at this point in the history
…and icon
  • Loading branch information
tako0614 committed Jun 22, 2024
1 parent fbc7666 commit 8f27cd5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion islands/Chats/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,14 @@ const AddFriendForm = (
setShowAddFriendForm: (arg0: boolean) => void
},
) => {
const [addFriendInfo, setAddFriendInfo] = useState({})
const [addFriendInfo, setAddFriendInfo] = useState<{
data: string
icon: string

}>({
data: "",
icon: "",
})
const [isRequested, setIsRequested] = useState(false)
useEffect(() => {
const fetchData = async () => {
Expand Down

0 comments on commit 8f27cd5

Please sign in to comment.