diff --git a/apps/dashboard/app/(app)/apis/[apiId]/settings/default-bytes.tsx b/apps/dashboard/app/(app)/apis/[apiId]/settings/default-bytes.tsx index adbd6b3fc4..995d3b6572 100644 --- a/apps/dashboard/app/(app)/apis/[apiId]/settings/default-bytes.tsx +++ b/apps/dashboard/app/(app)/apis/[apiId]/settings/default-bytes.tsx @@ -71,7 +71,10 @@ export const DefaultBytes: React.FC = ({ keyAuth }) => { Default Bytes - Set default Bytes for the keys under this API. + + Set default Bytes for the keys under this API. Default byte size must be between{" "} + 8 to 255 +
@@ -86,7 +89,7 @@ export const DefaultBytes: React.FC = ({ keyAuth }) => { className="max-w-sm" {...field} autoComplete="off" - onChange={(e) => field.onChange(Number(e.target.value))} + onChange={(e) => field.onChange(Number(e.target.value.replace(/\D/g, "")))} /> )} />