From 163c020137c325577d59d46aa6afbdbded2184fc Mon Sep 17 00:00:00 2001
From: Jeff Heiges <jehe8729@colorado.edu>
Date: Tue, 11 Mar 2025 09:55:13 +0000
Subject: Fixed all remaining hasOwnProperty errors

---
 diplomacy/web/src/gui/components/forms.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'diplomacy/web/src/gui/components/forms.jsx')

diff --git a/diplomacy/web/src/gui/components/forms.jsx b/diplomacy/web/src/gui/components/forms.jsx
index da7250d..5c42b44 100644
--- a/diplomacy/web/src/gui/components/forms.jsx
+++ b/diplomacy/web/src/gui/components/forms.jsx
@@ -52,7 +52,7 @@ export class Forms {
     }
 
     static getValue(fieldValues, fieldName, defaultValue) {
-        return fieldValues.hasOwnProperty(fieldName) ? fieldValues[fieldName] : defaultValue;
+        return Object.prototype.hasOwnProperty.call(fieldValues, fieldName) ? fieldValues[fieldName] : defaultValue;
     }
 
     static createReset(title, large, onReset) {
-- 
cgit v1.2.3

