Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
kattylucy committed Oct 7, 2024
1 parent 31c7c12 commit 7998e86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ export function InvestRedeemDrawer({

const { poolStates: dailyPoolStates } = useDailyPoolStates(poolId, new Date(dateFrom)) || {}

if (!poolId) return

return (
<Drawer isOpen={open} onClose={onClose}>
<LoadBoundary>
Expand Down
16 changes: 9 additions & 7 deletions centrifuge-app/src/components/Portfolio/Holdings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,15 @@ export function Holdings({

return address && tokens.length ? (
<>
<InvestRedeemDrawer
poolId={investPoolId || redeemPoolId || ''}
trancheId={investTrancheId || redeemTrancheId || ''}
open={!!(openRedeemDrawer || openInvestDrawer)}
onClose={() => navigate(pathname, { replace: true })}
defaultView={openRedeemDrawer ? 'redeem' : 'invest'}
/>
{investPoolId || redeemPoolId ? (
<InvestRedeemDrawer
poolId={investPoolId || redeemPoolId || ''}
trancheId={investTrancheId || redeemTrancheId || ''}
open={!!(openRedeemDrawer || openInvestDrawer)}
onClose={() => navigate(pathname, { replace: true })}
defaultView={openRedeemDrawer ? 'redeem' : 'invest'}
/>
) : null}
<TransferTokensDrawer
isOpen={!!(openSendDrawer || openReceiveDrawer)}
onClose={() => navigate(pathname, { replace: true })}
Expand Down

0 comments on commit 7998e86

Please sign in to comment.