diff --git a/app/src/organisms/UpdateRobotSoftware/NoUpdateFound.tsx b/app/src/organisms/UpdateRobotSoftware/NoUpdateFound.tsx index e778a7126a3..c9e22891125 100644 --- a/app/src/organisms/UpdateRobotSoftware/NoUpdateFound.tsx +++ b/app/src/organisms/UpdateRobotSoftware/NoUpdateFound.tsx @@ -1,5 +1,6 @@ import * as React from 'react' import { useTranslation } from 'react-i18next' +import { useDispatch } from 'react-redux' import { useHistory } from 'react-router-dom' import { @@ -16,10 +17,12 @@ import { import { StyledText } from '../../atoms/text' import { MediumButton } from '../../atoms/buttons' +import { updateConfigValue } from '../../redux/config' export function NoUpdateFound(): JSX.Element { const { i18n, t } = useTranslation(['device_settings', 'shared']) const history = useHistory() + const dispatch = useDispatch() return ( history.push('/robot-settings/rename-robot')} + onClick={() => { + dispatch( + updateConfigValue( + 'onDeviceDisplaySettings.unfinishedUnboxingFlowRoute', + '/robot-settings/rename-robot' + ) + ) + history.push('/robot-settings/rename-robot') + }} /> )