Skip to content

Commit

Permalink
Fix prettier.
Browse files Browse the repository at this point in the history
Signed-off-by: AAJELLAL <ali.ajellalod@gmail.com>
  • Loading branch information
AAJELLAL committed Jan 24, 2024
1 parent fc7a259 commit 1dc6544
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/dialogs/filter/expert/expert-filter-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import InputWithPopupConfirmation from '../../../utils/rhf-inputs/select-inputs/
import { SelectInput } from '@gridsuite/commons-ui';
import { useFormContext, useWatch } from 'react-hook-form';
import { testQuery } from './expert-filter-utils';
import { Battery, Generator, Load } from "../../../../utils/equipment-types";
import { Battery, Generator, Load } from '../../../../utils/equipment-types';
import {
COMBINATOR_OPTIONS,
EXPERT_FILTER_EQUIPMENTS,
Expand Down Expand Up @@ -76,7 +76,11 @@ export const expertFilterSchema = {
};

function isSupportedEquipmentType(equipmentType: string): boolean {
return equipmentType === Generator.type || equipmentType === Load.type || equipmentType === Battery.type;
return (
equipmentType === Generator.type ||
equipmentType === Load.type ||
equipmentType === Battery.type
);
}

const defaultQuery = {
Expand Down

0 comments on commit 1dc6544

Please sign in to comment.