mirror of
https://github.com/trezor/trezor-wallet
synced 2025-03-12 06:36:04 +00:00
ignore error code in showaddress method
403: permissions not granted from TrezorConnect can be safely ignored
This commit is contained in:
parent
3ac1b20747
commit
40790470c2
@ -94,6 +94,10 @@ export const showAddress = (path: Array<number>): AsyncAction => async (dispatch
|
|||||||
type: RECEIVE.HIDE_ADDRESS,
|
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({
|
dispatch({
|
||||||
type: NOTIFICATION.ADD,
|
type: NOTIFICATION.ADD,
|
||||||
payload: {
|
payload: {
|
||||||
|
Loading…
Reference in New Issue
Block a user