Skip to content
Permalink
Browse files

Remove duplications

  • Loading branch information...
nopara73 committed Nov 13, 2018
1 parent 3a0f08a commit ec25528bf31155cda63bebcbb1d92522f60dbeab
@@ -191,6 +191,7 @@ private void UpdateSuggestions(string words)
string[] nonSpecialLabels = Global.WalletService.GetNonSpecialLabels().ToArray();
IEnumerable<string> suggestedWords = nonSpecialLabels.Where(w => w.StartsWith(lastWorld, StringComparison.InvariantCultureIgnoreCase))
.Union(nonSpecialLabels.Where(w => w.Contains(lastWorld, StringComparison.InvariantCultureIgnoreCase)))
.Except(enteredWordList)
.Take(3);

Suggestions.Clear();
@@ -183,7 +183,7 @@ private void UpdateSuggestions(string words)
return;
}

var suggestedWords = EnglishWords.Where(w => w.StartsWith(lastWorld)).Take(7);
var suggestedWords = EnglishWords.Where(w => w.StartsWith(lastWorld)).Except(enteredWordList).Take(7);

Suggestions.Clear();
foreach (var suggestion in suggestedWords)

0 comments on commit ec25528

Please sign in to comment.
You can’t perform that action at this time.