Commit f9d32b3a authored by Clement Ho's avatar Clement Ho

Fix spec

parent c0880e22
...@@ -3,7 +3,7 @@ require('./filtered_search_token_keys'); ...@@ -3,7 +3,7 @@ require('./filtered_search_token_keys');
const weightTokenKey = { const weightTokenKey = {
key: 'weight', key: 'weight',
type: 'string', type: 'string',
param: 'weight', param: '',
symbol: '', symbol: '',
icon: 'balance-scale', icon: 'balance-scale',
}; };
...@@ -57,7 +57,7 @@ class FilteredSearchTokenKeysWithWeights extends gl.FilteredSearchTokenKeys { ...@@ -57,7 +57,7 @@ class FilteredSearchTokenKeysWithWeights extends gl.FilteredSearchTokenKeys {
return tokenKeysWithAlternative.find((tokenKey) => { return tokenKeysWithAlternative.find((tokenKey) => {
let tokenKeyParam = tokenKey.key; let tokenKeyParam = tokenKey.key;
if (tokenKey.param !== 'weight') { if (tokenKey.param) {
tokenKeyParam += `_${tokenKey.param}`; tokenKeyParam += `_${tokenKey.param}`;
} }
......
...@@ -6,7 +6,7 @@ require('~/filtered_search/filtered_search_token_keys_with_weights'); ...@@ -6,7 +6,7 @@ require('~/filtered_search/filtered_search_token_keys_with_weights');
const weightTokenKey = { const weightTokenKey = {
key: 'weight', key: 'weight',
type: 'string', type: 'string',
param: 'weight', param: '',
symbol: '', symbol: '',
icon: 'balance-scale', icon: 'balance-scale',
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment