Skip to content

Commit c156edf

Browse files
committed
frontend/app: restore routing
Fixes a regresseion from c9401c7. Unlocking a device routes to /account and is stuck there becaue maybeRoute() was not called anymore.
1 parent 9fe7be3 commit c156edf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frontends/web/src/app.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ class App extends Component<Props, State> {
8080
if (panelStore.state.activeSidebar) {
8181
toggleSidebar();
8282
}
83+
setTimeout(this.maybeRoute);
8384
}
8485

8586
public componentDidMount() {
87+
this.maybeRoute();
8688
this.onBitBoxBasesRegisteredChanged();
8789
this.onBitBoxBasesDetectedChanged();
8890
this.unsubscribe = apiWebsocket(({ type, data, meta }) => {

0 commit comments

Comments
 (0)