Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
parity-signer
Commits
ad2c2b98
Commit
ad2c2b98
authored
Sep 24, 2018
by
fro
Browse files
fix suggestions
parent
42c286b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/AccountSeed.js
View file @
ad2c2b98
...
...
@@ -127,8 +127,12 @@ export default class AccountSeed extends Component {
const
SUGGESTIONS_COUNT
=
5
;
const
result
=
[];
let
yielded
=
0
;
result
.
push
(
WORDS
[
fromIndex
]);
while
(
yielded
<
SUGGESTIONS_COUNT
&&
WORDS
[
fromIndex
]
!==
undefined
)
{
++
fromIndex
;
if
(
!
WORDS
[
fromIndex
].
startsWith
(
input
))
{
return
result
;
}
if
(
words
.
indexOf
(
WORDS
[
fromIndex
])
!==
-
1
)
{
continue
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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