Remove hasOwnProperty

This commit is contained in:
R4356th 2020-06-01 12:43:30 +06:00 committed by GitHub
parent 5a46a90564
commit 364f6da13d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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