From 5d75e0361dd0d05982baf11e352040e9e8fb06a7 Mon Sep 17 00:00:00 2001 From: Eemaan Amir <57627710+eemaanamir@users.noreply.github.com> Date: Tue, 24 Jun 2025 13:54:34 +0500 Subject: [PATCH] fix: fixed camel case issue so profile image shows for all users (#781) --- src/discussions/posts/data/selectors.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/discussions/posts/data/selectors.js b/src/discussions/posts/data/selectors.js index 7c4ae847..b825f93a 100644 --- a/src/discussions/posts/data/selectors.js +++ b/src/discussions/posts/data/selectors.js @@ -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 );