Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(app): update ODD unfinished route path when update not necessary #12975

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

shlokamin
Copy link
Member

Overview

This PR updates the unboxing flow unfinished route path when an update is not necessary. This fixes a bug where the welcome screen always showed up if you completed the unboxing flow without needing to update robot software.

Risk assessment

Low

@shlokamin shlokamin requested a review from koji June 26, 2023 15:56
@shlokamin shlokamin marked this pull request as ready for review June 26, 2023 15:56
@shlokamin shlokamin requested a review from a team as a code owner June 26, 2023 15:56
@codecov
Copy link

codecov bot commented Jun 26, 2023

Codecov Report

Merging #12975 (9c00ed2) into edge (0ac3a34) will decrease coverage by 0.40%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #12975      +/-   ##
==========================================
- Coverage   72.87%   72.47%   -0.40%     
==========================================
  Files        2351     1544     -807     
  Lines       64461    50538   -13923     
  Branches     7190     3203    -3987     
==========================================
- Hits        46973    36628   -10345     
+ Misses      15805    13426    -2379     
+ Partials     1683      484    -1199     
Flag Coverage Δ
app 43.88% <ø> (-27.69%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 807 files with indirect coverage changes


export function NoUpdateFound(): JSX.Element {
const { i18n, t } = useTranslation(['device_settings', 'shared'])
const history = useHistory()
const dispatch = useDispatch()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import type { Dispatch } from '../../redux/types'
Suggested change
const dispatch = useDispatch()
const dispatch = useDispatch<Dispatch>()

Copy link
Contributor

@koji koji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!
thank you for fixing the issue!

@shlokamin shlokamin merged commit 5ddc196 into edge Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants