Skip to content

Commit

Permalink
fix: claim tab
Browse files Browse the repository at this point in the history
  • Loading branch information
silochad committed Jun 30, 2023
1 parent 57341ab commit 9892daf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion projects/ui/src/components/Silo/Actions/Claim.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ const ClaimPropProvider: FC<{
const { txnBundler, refetch } = useFormTxnContext();

/// Data
const claimableBalance = siloBalance?.claimable.amount;
const claimableBalance = siloBalance?.claimable?.amount;
const isBean = sdk.tokens.BEAN.equals(token);

// Form
Expand Down
5 changes: 3 additions & 2 deletions projects/ui/src/components/Silo/Actions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { FC } from '~/types';
import useSdk from '~/hooks/sdk';
import useFarmerSiloBalancesAsync from '~/hooks/farmer/useFarmerSiloBalancesAsync';
import Convert from './Convert';
import Claim from '~/components/Silo/Actions/Claim';

/**
* Show the three primary Silo actions: Deposit, Withdraw, Claim.
Expand Down Expand Up @@ -75,9 +76,9 @@ const SiloActions: FC<{
<Withdraw token={token} siloBalance={siloBalanceAsync} />
)}
{/* FIXME: only show if user has legacy claimable assets */}
{/* {hasClaimableBeans && tab === 4 && (
{hasClaimableBeans && tab === 4 && (
<Claim token={token} siloBalance={props.siloBalance} />
)} */}
)}
</ModuleContent>
</Module>
{/* Tables */}
Expand Down

0 comments on commit 9892daf

Please sign in to comment.