Skip to content

Commit

Permalink
fix(Availability): lowercase availabilityState
Browse files Browse the repository at this point in the history
resolves #1478
  • Loading branch information
nurikk committed May 16, 2022
1 parent 78bb6d6 commit e217b35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/zigbee/Availability.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export function Availability(props: AvailabilityStateProps): JSX.Element {
} else {
availabilityState = availability.state;
}
availabilityState = availabilityState.toLowerCase() as OnlineOrOffline;

if (availabilityFeatureEnabled && availabilityEnabledForDevice) {
return <span className={cx({
Expand Down

0 comments on commit e217b35

Please sign in to comment.