Unverified Commit 29558b84 authored by R4356th's avatar R4356th Committed by GitHub

Update username-step.jsx

parent 6e81447e
......@@ -58,7 +58,7 @@ class UsernameStep extends React.Component {
}
// simple function to memoize remote requests for usernames
validateUsernameRemotelyWithCache (username) {
if (this.usernameRemoteCache.hasOwnProperty(username)) {
if (typeof this.usernameRemoteCache.hasOwnProperty[username] === 'Object') {
return Promise.resolve(this.usernameRemoteCache[username]);
}
// 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