diff options
Diffstat (limited to 'diplomacy/web/src/gui/pages')
-rw-r--r-- | diplomacy/web/src/gui/pages/content_connection.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/diplomacy/web/src/gui/pages/content_connection.jsx b/diplomacy/web/src/gui/pages/content_connection.jsx index a7a151f..aea7f39 100644 --- a/diplomacy/web/src/gui/pages/content_connection.jsx +++ b/diplomacy/web/src/gui/pages/content_connection.jsx @@ -32,7 +32,7 @@ export class ContentConnection extends React.Component { onSubmit(data) { const page = this.context; for (let fieldName of ['hostname', 'port', 'username', 'password', 'showServerFields']) - if (!data.hasOwnProperty(fieldName)) + if (!Object.prototype.hasOwnProperty.call(data, fieldName)) return page.error(`Missing ${fieldName}, got ${JSON.stringify(data)}`); page.info('Connecting ...'); if (this.connection) { |