Unverified Commit 5a46a905 authored by R4356th's avatar R4356th Committed by GitHub

Update username-step.jsx

parent 00a2dcad
...@@ -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 (username in this.usernameRemoteCache this.usernameRemoteCache.hasOwnProperty[username] === 'Object') { if (typeof this.usernameRemoteCache.hasOwnProperty[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