Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
364f6da1
Unverified
Commit
364f6da1
authored
Jun 01, 2020
by
R4356th
Committed by
GitHub
Jun 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove hasOwnProperty
parent
5a46a905
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/components/join-flow/username-step.jsx
src/components/join-flow/username-step.jsx
+1
-1
No files found.
src/components/join-flow/username-step.jsx
View file @
364f6da1
...
@@ -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
(
typeof
this
.
usernameRemoteCache
.
hasOwnProperty
[
username
]
===
'
object
'
)
{
if
(
typeof
this
.
usernameRemoteCache
[
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment