1
0
Fork 0

Merge branch 'fix/warnings-in-user-profile' into 'develop'

 Fix warnings about user-profile

Closes 

See merge request 
This commit is contained in:
Shpuld Shpludson 2019-03-29 15:32:40 +00:00
commit e329a362e0

View file

@ -1,7 +1,7 @@
import { includes } from 'lodash' import { includes } from 'lodash'
const generateProfileLink = (id, screenName, restrictedNicknames) => { const generateProfileLink = (id, screenName, restrictedNicknames) => {
const complicated = (isExternal(screenName) || includes(restrictedNicknames, screenName)) const complicated = !screenName || (isExternal(screenName) || includes(restrictedNicknames, screenName))
return { return {
name: (complicated ? 'external-user-profile' : 'user-profile'), name: (complicated ? 'external-user-profile' : 'user-profile'),
params: (complicated ? { id } : { name: screenName }) params: (complicated ? { id } : { name: screenName })