adding token: set default value to '0x' and load all results at focus

pull/3/head^2
Szymon Lesisz 6 years ago
parent 69a9f12ddf
commit e50a948713

@ -32,7 +32,7 @@ type SelectOptions = {
// action from component <reactSelect>
export const load = (input: string, network: string): AsyncAction => async (dispatch: Dispatch, getState: GetState): Promise<any> => {
if (input.length < 1) return;
if (input.length < 1) input = '0x';
const tokens = getState().localStorage.tokens[network];
const value = input.toLowerCase();

@ -71,7 +71,7 @@ const Summary = (props: Props) => {
<AsyncSelect
className="token-select"
multi={false}
autoload={false}
autoload={true}
ignoreCase
backspaceRemoves
value={null}

Loading…
Cancel
Save