Skip to content

Commit 7d09ce7

Browse files
committed
ci: Format code
1 parent 945e1e2 commit 7d09ce7

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/lib/seam/components/DeviceDetails/DeviceDetails.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import {
32
type CommonProps,
43
withRequiredCommonProps,
@@ -39,22 +38,23 @@ export function DeviceDetails({
3938
}: DeviceDetailsProps): JSX.Element | null {
4039
useComponentTelemetry('DeviceDetails')
4140

42-
const { client } = useSeamClient();
41+
const { client } = useSeamClient()
4342
const { device, refetch: refetchDevice } = useDevice({
4443
device_id: deviceId,
4544
})
4645

47-
4846
const updateDeviceName = async (newName: string): Promise<void> => {
49-
if (client == null) return;
47+
if (client == null) return
5048

51-
client.devices.update({
52-
device_id: deviceId,
53-
name: newName,
54-
})
49+
client.devices
50+
.update({
51+
device_id: deviceId,
52+
name: newName,
53+
})
5554
.then(async () => await refetchDevice())
56-
.catch((error) => { console.error(error); })
57-
55+
.catch((error) => {
56+
console.error(error)
57+
})
5858
}
5959

6060
if (device == null) {

src/lib/seam/components/DeviceDetails/ThermostatDeviceDetails.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function ThermostatDeviceDetails({
3838
disableConnectedAccountInformation,
3939
onBack,
4040
className,
41-
onEditName
41+
onEditName,
4242
}: ThermostatDeviceDetailsProps): JSX.Element | null {
4343
if (device == null) {
4444
return null
@@ -235,7 +235,7 @@ function ClimateSettingRow({
235235
}
236236
}
237237

238-
return () => { }
238+
return () => {}
239239
}, [isHeatCoolSuccess, isHeatSuccess, isCoolSuccess, isSetOffSuccess])
240240

241241
return (
@@ -275,7 +275,7 @@ function ClimateSettingRow({
275275
delta={
276276
Number(
277277
'min_heating_cooling_delta_fahrenheit' in device.properties &&
278-
device.properties.min_heating_cooling_delta_fahrenheit
278+
device.properties.min_heating_cooling_delta_fahrenheit
279279
) ?? 0
280280
}
281281
/>

0 commit comments

Comments
 (0)