Skip to content

Commit

Permalink
fix(earn): omit claim action when withdrawal includes claim
Browse files Browse the repository at this point in the history
  • Loading branch information
MuckT committed Oct 23, 2024
1 parent f412fad commit ded3ddb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/earn/poolInfoScreen/WithdrawBottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ export default function WithdrawBottomSheet({
>
<View style={styles.actionsContainer}>
<PartialWithdrawAction forwardedRef={forwardedRef} pool={pool} hasRewards={canClaim} />
{canClaim && <ClaimAction forwardedRef={forwardedRef} pool={pool} />}
{canClaim && !pool.dataProps.withdrawalIncludesClaim && (
<ClaimAction forwardedRef={forwardedRef} pool={pool} />
)}
<ExitAction forwardedRef={forwardedRef} pool={pool} hasRewards={canClaim} />
</View>
</BottomSheet>
Expand Down

0 comments on commit ded3ddb

Please sign in to comment.