Skip to content

Commit

Permalink
fix: button display
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Oct 18, 2023
1 parent bde2799 commit 6400940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/veyfi/components/ViewStakeUnstakeGauges.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export function StakeUnstakeGauges(): ReactElement {
className: 'my-4 md:my-0',
fullWidth: true,
transform: (props): ReactElement => {
if (toBigInt(props?.vaultDeposited?.raw) === 0n) {
if (toBigInt(props?.vaultDeposited?.raw) === 0n && toBigInt(props?.gaugeStaked.raw) === 0n) {
return (
<Link href={isActive ? `/vaults/${VEYFI_CHAIN_ID}/${props.vaultAddress}` : ''}>
<Button
Expand Down

1 comment on commit 6400940

@vercel
Copy link

@vercel vercel bot commented on 6400940 Oct 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.