Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Fix handle case sensitivity (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson committed Oct 17, 2020
1 parent 025a7a5 commit 521bf67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/src/store/cache/users/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export const getUser = (
state: AppState,
props: { handle?: string | null; id?: ID | null; uid?: UID | null }
) => {
if (props.handle && state.users.handles[props.handle]) {
props.id = state.users.handles[props.handle].id
if (props.handle && state.users.handles[props.handle.toLowerCase()]) {
props.id = state.users.handles[props.handle.toLowerCase()].id
}
return getEntry(state, {
...props,
Expand Down

0 comments on commit 521bf67

Please sign in to comment.