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

#461 Fix warnings about user-profile

Closes #461

See merge request pleroma/pleroma-fe!708
This commit is contained in:
Shpuld Shpludson 2019-03-29 15:32:40 +00:00
commit e329a362e0
1 changed files with 1 additions and 1 deletions

View File

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