mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 17:45:52 -05:00
Update username-step.jsx
This commit is contained in:
parent
00a2dcad63
commit
5a46a90564
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ class UsernameStep extends React.Component {
|
|||
}
|
||||
// simple function to memoize remote requests for usernames
|
||||
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]);
|
||||
}
|
||||
// username is not in our cache
|
||||
|
|
Loading…
Reference in a new issue