This commit is contained in:
1 parent
8efd032cc6
commit
df38dccbf1
735 files changed
+128321
-120870
No files matched your search
@@ -1,6 +1,9 @@
|
||||
import { positiveBigInt } from "@/lib/api";
|
||||
|
||||
export function formPositiveBigInt(formData: FormData, field: string): bigint | null {
|
||||
const value = formData.get(field);
|
||||
return typeof value === "string" ? positiveBigInt(value.trim()) : null;
|
||||
export function formPositiveBigInt(
|
||||
formData: FormData,
|
||||
field: string,
|
||||
): bigint | null {
|
||||
const value = formData.get(field);
|
||||
return typeof value === "string" ? positiveBigInt(value.trim()) : null;
|
||||
}
|
||||
Reference in new issue
Block a user