Skip to content

Commit

Permalink
better checks for tracker id on tracker error (#901)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImUrX committed Nov 19, 2023
1 parent 8fa535d commit ff21848
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gui/src/hooks/status-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,8 @@ export function parseStatusToLocale(

const tracker = trackers.find(
({ tracker }) =>
data.trackerId?.trackerNum &&
tracker?.trackerId?.trackerNum == data.trackerId.trackerNum &&
tracker?.trackerId?.deviceId?.id == data.trackerId.deviceId?.id
tracker?.trackerId?.trackerNum == data.trackerId?.trackerNum &&
tracker?.trackerId?.deviceId?.id == data.trackerId?.deviceId?.id
);
if (!tracker)
return {
Expand Down

0 comments on commit ff21848

Please sign in to comment.