Skip to content

Commit

Permalink
Change var names
Browse files Browse the repository at this point in the history
  • Loading branch information
xplato committed May 21, 2024
1 parent 6842ad9 commit 2c0ac2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/ui/noise-sensor/NoiseSensorActivityList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ interface NoiseSensorActivityListProps {
export function NoiseSensorActivityList({
device,
}: NoiseSensorActivityListProps): JSX.Element {
const date = useNow()
const [since] = useState(date)
const now = useNow()
const [mountedAt] = useState(now)

const { events } = useEvents({
device_id: device.device_id,
event_type: 'noise_sensor.noise_threshold_triggered',
since: since.minus({ months: 1 }).toString(),
since: mountedAt.minus({ months: 1 }).toString(),
})

return (
Expand Down

0 comments on commit 2c0ac2f

Please sign in to comment.