1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 09:18:09 +00:00

fix for endless "Loading accounts..." notification during discovery

This commit is contained in:
Szymon Lesisz 2018-08-08 15:16:42 +02:00
parent 880e11d6e9
commit ae98492562

View File

@ -71,7 +71,7 @@ const start = (state: State, action: DiscoveryStartAction): State => {
const complete = (state: State, action: DiscoveryCompleteAction): State => { const complete = (state: State, action: DiscoveryCompleteAction): State => {
const index: number = findIndex(state, action.network, action.device.state || '0'); const index: number = findIndex(state, action.network, action.device.state || '0');
const newState: State = [...state]; const newState: State = [...state];
newState[index].completed = true; newState[index] = { ...newState[index], completed: true };
return newState; return newState;
}; };