Skip to content

Commit

Permalink
allow 0 interest rate
Browse files Browse the repository at this point in the history
  • Loading branch information
JP Angelle committed Sep 11, 2023
1 parent 9b0e47d commit 8ab03fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions centrifuge-app/src/pages/IssuerPool/Assets/PricingInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Field, FieldProps, useFormikContext } from 'formik'
import { FieldWithErrorMessage } from '../../../components/FieldWithErrorMessage'
import { Tooltips } from '../../../components/Tooltips'
import { usePool } from '../../../utils/usePools'
import { combine, max, positiveNumber, required } from '../../../utils/validation'
import { combine, max, nonNegativeNumber, positiveNumber, required } from '../../../utils/validation'
import { validate } from '../../IssuerCreatePool/validate'
import { CreateLoanFormValues } from './CreateLoan'

Expand Down Expand Up @@ -92,7 +92,7 @@ export function PricingInput({ poolId }: { poolId: string }) {
placeholder="0.00"
rightElement="%"
name="pricing.interestRate"
validate={validate.interestRate}
validate={combine(required(), nonNegativeNumber(), max(100))}
/>
<FieldWithErrorMessage
as={DateInput}
Expand Down

0 comments on commit 8ab03fe

Please sign in to comment.