fixed settings url (when using clone)

pull/2/merge
Szymon Lesisz 6 years ago
parent 0b273391ba
commit ff7f79eb14

@ -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` ) );
} }
} }
} }

Loading…
Cancel
Save