Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JP Angelle committed Sep 13, 2023
1 parent c110a13 commit 0db23d9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion centrifuge-app/.env-config/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ REACT_APP_POOL_CREATION_TYPE=immediate
REACT_APP_RELAY_WSS_URL=wss://fullnode-relay.development.cntrfg.com
REACT_APP_SUBQUERY_URL=https://api.subquery.network/sq/centrifuge/pools-development
REACT_APP_SUBSCAN_URL=
REACT_APP_TINLAKE_NETWORK=goerli
REACT_APP_TINLAKE_NETWORK=mainnet
REACT_APP_INFURA_KEY=bf808e7d3d924fbeb74672d9341d0550
REACT_APP_WHITELISTED_ACCOUNTS=
REACT_APP_TINLAKE_SUBGRAPH_URL=https://graph.centrifuge.io/tinlake
Expand Down
13 changes: 11 additions & 2 deletions centrifuge-app/src/components/InvestRedeem/InvestRedeem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,14 @@ function InvestForm({ onCancel, hasInvestment, autoFocus, investLabel = 'Invest'
</Button>
)}
</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 +710,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 0db23d9

Please sign in to comment.