Unverified Commit 364f6da1 authored by R4356th's avatar R4356th Committed by GitHub

Remove hasOwnProperty

parent 5a46a905
...@@ -58,7 +58,7 @@ class UsernameStep extends React.Component { ...@@ -58,7 +58,7 @@ class UsernameStep extends React.Component {
} }
// simple function to memoize remote requests for usernames // simple function to memoize remote requests for usernames
validateUsernameRemotelyWithCache (username) { validateUsernameRemotelyWithCache (username) {
if (typeof this.usernameRemoteCache.hasOwnProperty[username] === 'object') { if (typeof this.usernameRemoteCache[username] === 'object') {
return Promise.resolve(this.usernameRemoteCache[username]); return Promise.resolve(this.usernameRemoteCache[username]);
} }
// username is not in our cache // username is not in our cache
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment