Skip to content

Commit

Permalink
Merge pull request #1529 from SanjalKatiyar/client_quota
Browse files Browse the repository at this point in the history
Fix custom storage quota (value input)
  • Loading branch information
openshift-merge-bot[bot] authored Aug 20, 2024
2 parents 3681bf0 + b343d7e commit 5937911
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/shared/src/utils/RequestSizeInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const RequestSizeInput: React.FC<RequestSizeInputProps> = ({
testID,
unitText,
}) => {
const parsedRequestSizeValue = parseInt(defaultRequestSizeValue, 10);
const parsedRequestSizeValue = parseInt(String(defaultRequestSizeValue), 10);
const defaultValue = Number.isFinite(parsedRequestSizeValue)
? parsedRequestSizeValue
: null;
Expand All @@ -62,7 +62,7 @@ export const RequestSizeInput: React.FC<RequestSizeInputProps> = ({

const onValueChange: React.ReactEventHandler<HTMLInputElement> = (event) => {
setValue(parseInt(event.currentTarget.value, 10));
onChange({ value: event.currentTarget.value, unit });
onChange({ value: parseInt(event.currentTarget.value, 10), unit });
};

const changeValueBy = (changeBy: number) => {
Expand Down Expand Up @@ -121,7 +121,7 @@ export type RequestSizeInputProps = {
required?: boolean;
dropdownUnits: any;
defaultRequestSizeUnit: string;
defaultRequestSizeValue: string;
defaultRequestSizeValue: string | number;
describedBy?: string;
step?: number;
minValue?: number;
Expand Down

0 comments on commit 5937911

Please sign in to comment.