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
00a2dcad
Unverified
Commit
00a2dcad
authored
May 31, 2020
by
R4356th
Committed by
GitHub
May 31, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update username-step.jsx
parent
d9d92659
Changes
1
Hide 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 @
00a2dcad
...
@@ -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
(
username
in
this
.
usernameRemoteCache
this
.
usernameRemoteCache
.
hasOwnProperty
[
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