Skip to content

Commit

Permalink
fix: Switch conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
garethfuller committed Jan 17, 2025
1 parent 4c5c463 commit 073ec68
Showing 1 changed file with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,24 +97,24 @@ export function AddLiquiditySummary({

{shouldShowReceipt ? (
<CardPopAnim key="staking-options">
{pool.staking ? (
<Card variant="modalSubSection" w="full">
<StakingOptions />
{isVebalPool(pool.id) ? (
<Card variant="modalSubSection">
<VStack align="start" spacing="md" w="full">
<Text>Get extra incentives with veBAL</Text>
<Button onClick={vebalRedirectModal.onOpen} size="lg" variant="primary" w="full">
Lock to get veBAL
</Button>
</VStack>

<VebalRedirectModal
isOpen={vebalRedirectModal.isOpen}
onClose={vebalRedirectModal.onClose}
/>
</Card>
) : (
isVebalPool(pool.id) && (
<Card variant="modalSubSection">
<VStack align="start" spacing="md" w="full">
<Text>Get extra incentives with veBAL</Text>
<Button onClick={vebalRedirectModal.onOpen} size="lg" variant="primary" w="full">
Lock to get veBAL
</Button>
</VStack>

<VebalRedirectModal
isOpen={vebalRedirectModal.isOpen}
onClose={vebalRedirectModal.onClose}
/>
pool.staking && (
<Card variant="modalSubSection" w="full">
<StakingOptions />
</Card>
)
)}
Expand Down

0 comments on commit 073ec68

Please sign in to comment.