1
0
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:
Szymon Lesisz 2018-05-15 15:09:36 +02:00
parent 0b273391ba
commit ff7f79eb14

View File

@ -467,7 +467,8 @@ export const forgetDevice = (device: TrezorDevice): ThunkAction => {
export const gotoDeviceSettings = (device: TrezorDevice): ThunkAction => { export const gotoDeviceSettings = (device: TrezorDevice): ThunkAction => {
return (dispatch: Dispatch, getState: GetState): void => { return (dispatch: Dispatch, getState: GetState): void => {
if (device.features) { 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` ) );
} }
} }
} }