UPDATE/FEAT: Proper handling of profile pictures where a fallback to the default pfp is used;

REFACTOR: Remove unnecessary props from users on `ResultsPage`;
REFACTOR: General formatting
This commit is contained in:
Chris-1010
2025-03-02 14:52:17 +00:00
parent 2fceb6c19d
commit 37122e1cea
7 changed files with 610 additions and 704 deletions

View File

@@ -183,7 +183,11 @@ const ChatPanel: React.FC<ChatPanelProps> = ({ streamId, onViewerCountChange })
onClick={() => (msg.chatter_username === username ? null : (window.location.href = `/user/${msg.chatter_username}`))}
>
<img
src="/images/monkey.png"
src={`/user/${msg.chatter_username}/profile_picture`}
onError={(e) => {
e.currentTarget.src = "/images/pfps/default.png";
e.currentTarget.onerror = null;
}}
alt="User Avatar"
className="w-full h-full object-cover"
style={{ width: "2.5em", height: "2.5em" }}