File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
frontend/src/components/onboarding_app Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ export default () => {
43
43
}
44
44
} ;
45
45
46
+ const pathDisplaysApDisconnectDialog = ( path : string ) => {
47
+ return ! [ PageRoute . Upgrade . toString ( ) , PageRoute . Restart . toString ( ) ] . includes ( path ) ;
48
+ } ;
49
+
46
50
return (
47
51
< >
48
52
< Switch >
@@ -184,7 +188,7 @@ export default () => {
184
188
< Route component = { ErrorPage } />
185
189
</ Switch >
186
190
< BuildInformation info = { buildInfo } className = { styles . buildInfo } />
187
- < HotspotDisconnectDialog enabled = { useLocation ( ) . pathname !== PageRoute . Restart && enableDisconnectedFromApDialog } />
191
+ < HotspotDisconnectDialog enabled = { pathDisplaysApDisconnectDialog ( useLocation ( ) . pathname ) && enableDisconnectedFromApDialog } />
188
192
</ >
189
193
) ;
190
194
} ;
Original file line number Diff line number Diff line change @@ -354,7 +354,6 @@ describe("App", () => {
354
354
355
355
// on upgrade page
356
356
await waitForUpgradePage ( ) ;
357
- await checkForDialog ( ) ;
358
357
359
358
// mock upgrade and go to registration page
360
359
await upgrade ( ) ;
You can’t perform that action at this time.
0 commit comments