mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-28 03:08:30 +00:00
adding token: set default value to '0x' and load all results at focus
This commit is contained in:
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…
Reference in New Issue
Block a user