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 );