1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-13 20:08:56 +00:00

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

This commit is contained in:
Szymon Lesisz 2018-08-17 09:24:26 +02:00
parent 69a9f12ddf
commit e50a948713
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

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