shoutit / shoutit-web

1 stars 0 forks source link

ShoutsByUsername - handle dots #565

Closed gor181 closed 8 years ago

gor181 commented 8 years ago

Username can contain dots therefore string templating will generate an incorrect path including the string after the dot as the path. Use lodash get to get parts of the state.

gor181 commented 8 years ago

@gpbl Please be kind to check the changes. Cheers.

gpbl commented 8 years ago

I think the naming of the getState you've found in the selector lead to some confusion... my bad! That getState is really not clear. I didn't know I could pass an array to get – which solves the issue :) I'm taking this branch to refactor a bit the code.