Skip to content

Commit

Permalink
style(frontend): fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed Nov 25, 2024
1 parent d74b17d commit d91394c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions frontend-v2/src/features/model/VariableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ const VariableRow: FC<Props> = ({
const intervalId = setInterval(() => {
if (isDirty) {
handleSubmit((data) => {
// @ts-expect-error
// @ts-expect-error - lower_bound and upper_bound can be null
if (data.lower_bound === "") {
data.lower_bound = null;
}
// @ts-expect-error
// @ts-expect-error - lower_bound and upper_bound can be null
if (data.upper_bound === "") {
data.upper_bound = null;
}
Expand Down
4 changes: 2 additions & 2 deletions frontend-v2/src/features/results/Results.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Tabs, Tab, Box, Button, IconButton } from "@mui/material";
import RemoveCircleOutlineIcon from "@mui/icons-material/RemoveCircleOutline";
import { ChangeEvent, FC, useEffect, useState } from "react";
import { SyntheticEvent, FC, useState } from "react";
import ArrowDropDownIcon from "@mui/icons-material/ArrowDropDown";
import ResultsTab from "./ResultsTab";
import { TableHeader } from "../../components/TableHeader";
Expand Down Expand Up @@ -28,7 +28,7 @@ const Results: FC = () => {
setTab(newTables?.length - 1);
};

const handleTabChange = async (event: ChangeEvent<{}>, newValue: number) => {
const handleTabChange = async (event: SyntheticEvent, newValue: number) => {
setTab(newValue);
};

Expand Down
2 changes: 1 addition & 1 deletion frontend-v2/src/features/simulation/useSimulationInputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const getSimulateInput = (
} else if (mode == simulationInputMode.ALL_OUTPUTS_NO_AMOUNTS) {
const amountNames = ["Aa", "A1", "A2", "A3"];
for (const v of variables || []) {
let isAmount = model.is_library_model && amountNames.includes(v.name);
const isAmount = model.is_library_model && amountNames.includes(v.name);
if (!v.constant && !isAmount) {
outputs.push(v.qname);
}
Expand Down

0 comments on commit d91394c

Please sign in to comment.