fix: fixed camel case issue so profile image shows for all users (#781)

This commit is contained in:
Eemaan Amir
2025-06-24 13:54:34 +05:00
committed by GitHub
parent edd3f73211
commit 5d75e0361d

View File

@@ -1,4 +1,5 @@
import { createSelector } from '@reduxjs/toolkit';
import camelCase from 'lodash/camelCase';
const selectThreads = state => state.threads.threadsById;
@@ -58,5 +59,5 @@ export const selectThreadFilters = () => state => state.threads.filters;
export const selectThreadNextPage = () => state => state.threads.nextPage;
export const selectAuthorAvatar = author => state => (
state.threads.avatars?.[author]?.profile.image
state.threads.avatars?.[camelCase(author)]?.profile.image
);