Skip to content

Commit

Permalink
fixing up the naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
arunavabasucom committed Aug 8, 2022
1 parent 873d76b commit 5588d11
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/src/components/CalcSpectrum.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -287,13 +287,13 @@ export const CalcSpectrum: React.FC = () => {
/>
</Grid>

{useSlitSwitch ? (
{useSimulateSlitFunction ? (
<Grid item xs={12}>
<UseSimulateSlit />
</Grid>
) : null}

{useSlitSwitch ? (
{useSimulateSlitFunction ? (
useSlit ? (
<Grid item xs={12}>
<SimulateSlit control={control} />
Expand Down

0 comments on commit 5588d11

Please sign in to comment.