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:
parent
880e11d6e9
commit
ae98492562
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user