forked from AkkomaGang/akkoma-fe
Use "-1" in indexOf
This commit is contained in:
parent
24caa2cfcd
commit
7ffb7e6795
1 changed files with 1 additions and 1 deletions
|
@ -5,6 +5,6 @@ const generateProfileLink = (user, name = '') => {
|
|||
return { ...baseLinkParams, params: (isExternal(user) ? { id } : { name }) }
|
||||
}
|
||||
|
||||
const isExternal = ({screen_name}) => (screen_name.indexOf('@') > 0)
|
||||
const isExternal = ({screen_name}) => (screen_name.indexOf('@') > -1)
|
||||
|
||||
export default generateProfileLink
|
||||
|
|
Loading…
Reference in a new issue