Skip to content

Commit

Permalink
Fix wrong parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
imericxu committed Jul 14, 2024
1 parent 51d8c1c commit 450878e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ export function getIntFromForm(
}

export function getFloatFromForm(
formEvent: Readonly<FormData>,
formData: Readonly<FormData>,
key: string,
): number | null {
const value = formEvent.get(key);
const value = formData.get(key);
if (value === null) return null;

const floatValue = parseFloat(value.toString());
Expand Down

0 comments on commit 450878e

Please sign in to comment.