Merge branch 'develop' into feature/mobile-improvements-3

This commit is contained in:
shpuld 2019-04-01 22:42:06 +03:00
commit 46de457f50
28 changed files with 457 additions and 116 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 })