Skip to content

Commit d84e784

Browse files
committed
frontend: fix empty element
Unlocking a device renders an empty main element. This is only visible in some views (i.e. settings) as a large empty space on top of the view. Reason is that the setup wizard is now always mounted since watch-only as the device can be unlocked at any time.
1 parent 888f481 commit d84e784

File tree

1 file changed

+4
-1
lines changed
  • frontends/web/src/routes/device/bitbox02

1 file changed

+4
-1
lines changed

frontends/web/src/routes/device/bitbox02/wizard.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ export class Wizard extends Component<Props, State> {
152152
text={waitDialog.text} />
153153
);
154154
}
155-
155+
// fixes empty main element, happens when after unlocking the device, reason wizard is now always mounted in app.tsx
156+
if (appStatus === '' && status === 'initialized') {
157+
return null;
158+
}
156159
return (
157160
<Main>
158161
{ (status === 'connected') ? (

0 commit comments

Comments
 (0)