Update src/pages/logos.tsx
Browse files- src/pages/logos.tsx +3 -3
src/pages/logos.tsx
CHANGED
@@ -104,12 +104,12 @@ const IndexPage = () => {
|
|
104 |
const handleSubmit = async (e: FormEvent) => {
|
105 |
e.preventDefault();
|
106 |
setIsLoading(true);
|
107 |
-
|
108 |
try {
|
109 |
const formData = new FormData();
|
110 |
for (const key in inputData) {
|
111 |
-
|
112 |
-
|
|
|
113 |
if (typeof inputData[inputKey] === 'string' || inputData[inputKey] instanceof Blob) {
|
114 |
formData.append(inputKey, inputData[inputKey] as string | Blob);
|
115 |
}
|
|
|
104 |
const handleSubmit = async (e: FormEvent) => {
|
105 |
e.preventDefault();
|
106 |
setIsLoading(true);
|
|
|
107 |
try {
|
108 |
const formData = new FormData();
|
109 |
for (const key in inputData) {
|
110 |
+
// Changed this line to fix the 'no-prototype-builtins' error
|
111 |
+
if (Object.prototype.hasOwnProperty.call(inputData, key)) {
|
112 |
+
const inputKey = key as keyof InputData;
|
113 |
if (typeof inputData[inputKey] === 'string' || inputData[inputKey] instanceof Blob) {
|
114 |
formData.append(inputKey, inputData[inputKey] as string | Blob);
|
115 |
}
|