Allow admins to see bets page
This commit is contained in:
parent
3b390f758f
commit
1e2593894c
|
@ -39,6 +39,7 @@ import { PortfolioValueSection } from './portfolio/portfolio-value-section'
|
|||
import { filterDefined } from 'common/util/array'
|
||||
import { useUserBets } from 'web/hooks/use-user-bets'
|
||||
import { ReferralsButton } from 'web/components/referrals-button'
|
||||
import { ENV_CONFIG } from 'common/envs/constants'
|
||||
|
||||
export function UserLink(props: {
|
||||
name: string
|
||||
|
@ -288,7 +289,11 @@ export function UserPage(props: { user: User; currentUser?: User }) {
|
|||
</span>
|
||||
),
|
||||
},
|
||||
...(isCurrentUser
|
||||
...(isCurrentUser ||
|
||||
[
|
||||
...(ENV_CONFIG.whitelistCreators ?? []),
|
||||
'JamesGrugett',
|
||||
].includes(currentUser?.username ?? '')
|
||||
? [
|
||||
{
|
||||
title: 'Bets',
|
||||
|
|
Loading…
Reference in New Issue
Block a user