Skip to content

Commit

Permalink
approve token fix (#1574)
Browse files Browse the repository at this point in the history
* fix

* typo and revert env
  • Loading branch information
JP authored Sep 18, 2023
1 parent 9122ad0 commit aa1df75
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions centrifuge-app/src/components/InvestRedeem/InvestRedeem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,11 @@ function InvestForm({ onCancel, hasInvestment, autoFocus, investLabel = 'Invest'
</Stack>
</Stack>
) : changeOrderFormShown ? (
renderInput(() => setChangeOrderFormShown(false))
state.needsPoolCurrencyApproval ? (
renderInput(onCancel, { onClick: actions.approvePoolCurrency, loading: isApproving })
) : (
renderInput(onCancel)
)
) : hasPendingOrder ? (
<PendingOrder
type="invest"
Expand Down Expand Up @@ -705,7 +709,11 @@ function RedeemForm({ onCancel, autoFocus }: RedeemFormProps) {
</Stack>
</Stack>
) : changeOrderFormShown ? (
renderInput(() => setChangeOrderFormShown(false))
state.needsTrancheTokenApproval ? (
renderInput(onCancel, { onClick: actions.approveTrancheToken, loading: isApproving })
) : (
renderInput(onCancel)
)
) : hasPendingOrder ? (
<PendingOrder
type="redeem"
Expand Down

0 comments on commit aa1df75

Please sign in to comment.