mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
fixed settings url (when using clone)
This commit is contained in:
parent
0b273391ba
commit
ff7f79eb14
@ -467,7 +467,8 @@ export const forgetDevice = (device: TrezorDevice): ThunkAction => {
|
||||
export const gotoDeviceSettings = (device: TrezorDevice): ThunkAction => {
|
||||
return (dispatch: Dispatch, getState: GetState): void => {
|
||||
if (device.features) {
|
||||
dispatch( push(`/device/${ device.features.device_id }/settings`) );
|
||||
const devUrl: string = `${device.features.device_id}${ device.instance ? `:${ device.instance}` : '' }`;
|
||||
dispatch( push( `/device/${ devUrl}/settings` ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user