Skip to content

Commit 95f4798

Browse files
Merge branch 'issue_49' into issues_47_49_51
2 parents 62af812 + 09e84c1 commit 95f4798

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/prod/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/AccountMenu/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ class AccountMenu extends React.Component {
7575
</div>
7676

7777
{
78-
!_.isEmpty(profile) && hasAccess(profile.roles) && (
78+
!_.isEmpty(profile) && (
7979
<div
8080
role='button'
8181
className={styles['switch-to-business-container']}
8282
onClick={onSwitch}
8383
>
8484
<IconSwitchBusiness className={styles['switch-icon']} />
85-
<Link to={_.isEmpty(switchText.href) ? switchText.link : switchText.href} onClick={onClose}>
85+
<Link to={hasAccess(profile.roles)? _.isEmpty(switchText.href) ? switchText.link : switchText.href : 'http://www.topcoder.com'} onClick={onClose}>
8686
<span className={styles['switch-to-busniness']}>{switchText.title}</span>
8787
</Link>
8888
</div>

0 commit comments

Comments
 (0)