Skip to content

Commit 8cd6435

Browse files
committed
fix: removeSuffix for auth forms
1 parent eb7222c commit 8cd6435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/src/utils/removeSuffix.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const removeSuffixes = (formData: FormData, delimiter: string = "-«") => {
22
const processedData = {} as Record<string, string>
33

4-
for (const [key, value] in Array.from(formData.entries())) {
4+
for (const [key, value] of Array.from(formData.entries())) {
55
const [originalKey] = key.split(delimiter)
66

77
processedData[originalKey] = value as string

0 commit comments

Comments
 (0)