Updated toLowerCase function on pinned, favorite statuses

fixes #6
This commit is contained in:
mgabdev 2019-07-03 21:57:22 -04:00
parent 5fefd73229
commit 4084d14c97
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ import MissingIndicator from 'gabsocial/components/missing_indicator';
const mapStateToProps = (state, { params: { username } }) => {
return {
isMyAccount: (username.toLowercase() === meUsername.toLowerCase()),
isMyAccount: (username.toLowerCase() === meUsername.toLowerCase()),
statusIds: state.getIn(['status_lists', 'favourites', 'items']),
isLoading: state.getIn(['status_lists', 'favourites', 'isLoading'], true),
hasMore: !!state.getIn(['status_lists', 'favourites', 'next']),

View File

@ -12,7 +12,7 @@ import MissingIndicator from 'gabsocial/components/missing_indicator';
const mapStateToProps = (state, { params: { username } }) => {
return {
isMyAccount: (username.toLowercase() === meUsername.toLowerCase()),
isMyAccount: (username.toLowerCase() === meUsername.toLowerCase()),
statusIds: state.getIn(['status_lists', 'pins', 'items']),
hasMore: !!state.getIn(['status_lists', 'pins', 'next']),
};