Skip to content

Commit 16cb665

Browse files
committed
ci: Format code
1 parent 18f3d54 commit 16cb665

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/lib/ui/thermostat/ClimatePreset.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ interface PresetFormProps {
7171
withKeyField?: boolean
7272
}
7373

74-
function useErrorMessage(isError: boolean, error: SeamHttpApiError | null): string {
74+
function useErrorMessage(
75+
isError: boolean,
76+
error: SeamHttpApiError | null
77+
): string {
7578
return useMemo(() => {
7679
if (!isError) return ''
7780

@@ -378,8 +381,8 @@ function UpdateForm({
378381
[device, mutate, onComplete]
379382
)
380383

381-
const errorMessage = useErrorMessage(isError, error);
382-
384+
const errorMessage = useErrorMessage(isError, error)
385+
383386
return (
384387
<>
385388
<Snackbar

src/lib/ui/thermostat/ClimatePresets.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function ClimatePresets(props: ClimatePresetsManagement): JSX.Element {
4848
const errorMessage = useMemo(() => {
4949
if (!isError) return ''
5050

51-
if(error?.message != null) {
51+
if (error?.message != null) {
5252
return error.message
5353
}
5454

0 commit comments

Comments
 (0)