From 20dbebae9fc96c968febc68a289976e7e147a7c8 Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Thu, 6 Dec 2018 16:09:47 -0330 Subject: Adds network loading retry / error screen. --- ui/app/reducers/app.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ui/app/reducers') diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js index ea25b8693..22cfe7f8d 100644 --- a/ui/app/reducers/app.js +++ b/ui/app/reducers/app.js @@ -76,6 +76,7 @@ function reduceApp (state, action) { trezor: `m/44'/60'/0'/0`, ledger: `m/44'/60'/0'/0/0`, }, + lastSelectedProvider: null, }, state.appState) switch (action.type) { @@ -748,6 +749,14 @@ function reduceApp (state, action) { networkNonce: action.value, }) + case actions.SET_PREVIOUS_PROVIDER: + if (action.value === 'loading') { + return appState + } + return extend(appState, { + lastSelectedProvider: action.value, + }) + default: return appState } -- cgit