mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-16 00:00:26 -05:00
Remove hasOwnProperty
This commit is contained in:
parent
5a46a90564
commit
364f6da13d
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 (typeof this.usernameRemoteCache.hasOwnProperty[username] === 'object') {
|
||||
if (typeof this.usernameRemoteCache[username] === 'object') {
|
||||
return Promise.resolve(this.usernameRemoteCache[username]);
|
||||
}
|
||||
// username is not in our cache
|
||||
|
|
Loading…
Reference in a new issue