diff --git a/frontend/src/components/CalcSpectrum.tsx b/frontend/src/components/CalcSpectrum.tsx
index 096ae130..61893d02 100644
--- a/frontend/src/components/CalcSpectrum.tsx
+++ b/frontend/src/components/CalcSpectrum.tsx
@@ -40,7 +40,7 @@ export const CalcSpectrum: React.FC = () => {
const [isNonEquilibrium, setIsNonEquilibrium] = useState(false);
const [useGesia, setUseGesia] = useState(false);
const [useSlit, setUseSlit] = useState(false);
- const [useSlitSwitch, setUseSlitSwitch] = useState(false);
+ const [useSimulateSlitFunction, setUseSimulateSlitFunction] = useState(false);
const Schema = yup.object().shape({
useNonEqi: yup.boolean(),
useSlitSwitch: yup.boolean(), //bool
@@ -174,9 +174,9 @@ export const CalcSpectrum: React.FC = () => {
setUseGesia(false);
}
if (modeWatch === "absorbance") {
- setUseSlitSwitch(false);
+ setUseSimulateSlitFunction(false);
} else {
- setUseSlitSwitch(true);
+ setUseSimulateSlitFunction(true);
}
if (modeWatch === "absorbance") {
setValue("simulate_slit", undefined);
@@ -287,13 +287,13 @@ export const CalcSpectrum: React.FC = () => {
/>
- {useSlitSwitch ? (
+ {useSimulateSlitFunction ? (
) : null}
- {useSlitSwitch ? (
+ {useSimulateSlitFunction ? (
useSlit ? (