1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-03-11 14:16:04 +00:00

ignore error code in showaddress method

403: permissions not granted from TrezorConnect can be safely ignored
This commit is contained in:
Szymon Lesisz 2019-02-22 17:42:07 +01:00
parent 3ac1b20747
commit 40790470c2

View File

@ -94,6 +94,10 @@ export const showAddress = (path: Array<number>): AsyncAction => async (dispatch
type: RECEIVE.HIDE_ADDRESS,
});
// special case: device no-backup permissions not granted
// $FlowIssue: remove this after trezor-connect@7.0.0 release
if (response.payload.code === 403) return;
dispatch({
type: NOTIFICATION.ADD,
payload: {