Skip to content

Commit

Permalink
TopAppBar: fix flashing "Device" text in Dashboard (commaai#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ugtthis authored Jun 13, 2024
1 parent 034438c commit 4aa26ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/dashboard/activities/DeviceActivity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const DeviceActivity: VoidComponent<DeviceActivityProps> = (props) => {
return (
<>
<TopAppBar leading={<IconButton onClick={toggleDrawer}>menu</IconButton>}>
<Suspense fallback={<>Device</>}>{device()?.alias}</Suspense>
<Suspense fallback={<></>}>{device()?.alias}</Suspense>
</TopAppBar>
<div class="flex flex-col gap-4 px-4 pb-4">
<div class="h-[72px] overflow-hidden rounded-lg bg-surface-container-low">
Expand Down

0 comments on commit 4aa26ed

Please sign in to comment.