Skip to content

Commit

Permalink
Fix: Removed canMoveFunds
Browse files Browse the repository at this point in the history
  • Loading branch information
Julianahlk committed Jul 14, 2022
1 parent 05ef33c commit e57ac6e
Showing 1 changed file with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ import { SpinnerLoader } from '~core/Preloaders';
import Heading from '~core/Heading';
import InfoPopover from '~core/InfoPopover';
import NavLink from '~core/NavLink';
import {
useLoggedInUser,
Colony,
useTokenBalancesForDomainsQuery,
} from '~data/index';
import { Colony, useTokenBalancesForDomainsQuery } from '~data/index';

import TokenItem from './TokenItem';

Expand All @@ -30,10 +26,6 @@ interface Props {
const displayName = 'dashboard.ColonyHome.ColonyFunding';

const ColonyFunding = ({ colony, currentDomainId }: Props) => {
const { ethereal, username } = useLoggedInUser();

const canMoveFunds = !!username && !ethereal;

const {
colonyAddress,
tokens: colonyTokens,
Expand All @@ -57,13 +49,9 @@ const ColonyFunding = ({ colony, currentDomainId }: Props) => {
return (
<div className={styles.main}>
<Heading appearance={{ size: 'normal', weight: 'bold' }}>
{canMoveFunds ? (
<NavLink to={`/colony/${colonyName}/funds`}>
<FormattedMessage {...MSG.title} />
</NavLink>
) : (
<NavLink to={`/colony/${colonyName}/funds`}>
<FormattedMessage {...MSG.title} />
)}
</NavLink>
</Heading>
{data && !isLoadingTokenBalances ? (
<ul data-test="availableFunds">
Expand Down

0 comments on commit e57ac6e

Please sign in to comment.