fix: fixed camel case issue so profile image shows for all users (#781)
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user