diff options
author | Jeff Heiges <jehe8729@colorado.edu> | 2025-03-11 09:55:13 +0000 |
---|---|---|
committer | Jeff Heiges <jehe8729@colorado.edu> | 2025-03-11 09:55:13 +0000 |
commit | 163c020137c325577d59d46aa6afbdbded2184fc (patch) | |
tree | c15a64b4f9f5966a2fab5a733aff2e1baa5fdc4a /diplomacy/web/src/gui/components | |
parent | 17d0f0ed7fee829d30e44f3d7a4f20e364a2f076 (diff) |
Fixed all remaining hasOwnProperty errors
Diffstat (limited to 'diplomacy/web/src/gui/components')
-rw-r--r-- | diplomacy/web/src/gui/components/forms.jsx | 2 | ||||
-rw-r--r-- | diplomacy/web/src/gui/components/tabs.jsx | 2 |
2 files changed, 2 insertions, 2 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) { diff --git a/diplomacy/web/src/gui/components/tabs.jsx b/diplomacy/web/src/gui/components/tabs.jsx index a3f6b9b..d0112f2 100644 --- a/diplomacy/web/src/gui/components/tabs.jsx +++ b/diplomacy/web/src/gui/components/tabs.jsx @@ -46,7 +46,7 @@ export class Tabs extends React.Component { <nav className={'tabs-bar nav nav-tabs justify-content-center mb-3'}> {this.props.menu.map((tabName, index) => this.generateTabAction( this.props.titles[index], tabName, active === tabName, this.props.onChange, - (this.props.highlights.hasOwnProperty(tabName) && this.props.highlights[tabName]) || null + (Object.prototype.hasOwnProperty.call(this.props.highlights, tabName) && this.props.highlights[tabName]) || null ))} </nav> {this.props.children} |