Skip to content

Commit

Permalink
Do not type amountInputValue and value on BigNumberInput with explici…
Browse files Browse the repository at this point in the history
…t undefined
  • Loading branch information
mudrila committed Apr 9, 2024
1 parent ac192ff commit e3ff66b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface ITokenAllocations {
setFieldValue: (field: string, value: any) => void;
addressErrorMessage: string | null;
amountErrorMessage: string | null;
amountInputValue: BigNumber | undefined | null;
amountInputValue?: BigNumber | null;
allocationLength: number;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/forms/BigNumberInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { BigNumberValuePair } from '../../../types';
export interface BigNumberInputProps
extends Omit<InputElementProps, 'value' | 'onChange'>,
FormControlOptions {
value: BigNumber | undefined | null;
value?: BigNumber | null;
onChange: (value: BigNumberValuePair) => void;
decimalPlaces?: number;
min?: string;
Expand Down

0 comments on commit e3ff66b

Please sign in to comment.