tsi-org commited on
Commit
9561fcb
·
1 Parent(s): 8e12f8b

Update src/pages/logos.tsx

Browse files
Files changed (1) hide show
  1. 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
- if (inputData.hasOwnProperty(key)) {
112
- const inputKey = key as keyof InputData; // Explicitly specify the key's type
 
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
  }