diff options
Diffstat (limited to 'diplomacy/web/src/gui/components/forms.jsx')
-rw-r--r-- | diplomacy/web/src/gui/components/forms.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |