Skip to content

Commit

Permalink
Fix fee submission
Browse files Browse the repository at this point in the history
  • Loading branch information
sophialittlejohn committed Aug 1, 2024
1 parent 7ac2eeb commit 32f296d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions centrifuge-app/src/pages/Loan/RepayForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function InternalRepayForm({ loan, destination }: { loan: ActiveLoan; destinatio
return combineLatest([cent.getApi(), repayTx, poolFees.getBatch(repayForm)]).pipe(
switchMap(([api, repayTx, batch]) => {
if (batch.length) {
return cent.wrapSignAndSend(api, api.tx.utility.batchAll([repayTx, ...batch], options))
return cent.wrapSignAndSend(api, api.tx.utility.batchAll([repayTx, ...batch]), options)
}
return cent.wrapSignAndSend(api, repayTx, options)
})
Expand Down Expand Up @@ -183,7 +183,7 @@ function InternalRepayForm({ loan, destination }: { loan: ActiveLoan; destinatio
<CurrencyInput
{...field}
value={field.value instanceof Decimal ? field.value.toNumber() : field.value}
label="Principal"
label={isCashLoan(loan) ? 'Amount' : 'Principal'}
disabled={isRepayLoading}
currency={pool?.currency.symbol}
onChange={(value) => form.setFieldValue('principal', value)}
Expand Down

0 comments on commit 32f296d

Please sign in to comment.