Skip to content

Commit

Permalink
fix: fix no friend add button incorrect key problem
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Aug 22, 2023
1 parent 78bef4e commit 4a06368
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const FriendPanel: React.FC = React.memo(() => {
const received = friendRequests.filter((item) => item.to === userId);

const handleSwitchToAddFriend = useCallback(() => {
setActiveKey('add');
setActiveKey('4');
}, []);

return (
Expand Down

0 comments on commit 4a06368

Please sign in to comment.