Skip to content

Commit

Permalink
Add expect err comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xplato committed May 20, 2024
1 parent 6ded29a commit 1ef458c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/ui/noise-sensor/NoiseSensorEventItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export function NoiseSensorEventItem({

function getContextSublabel(event: Event): string | null {
if ('noise_threshold_name' in event) {
return `${event.noise_threshold_name}`
// @ts-expect-error [upstream] shallow event type (#633)
return event.noise_threshold_name
}

if ('noise_level_decibels' in event) {
Expand Down

0 comments on commit 1ef458c

Please sign in to comment.