diff --git a/src/bin/BinSettings.tsx b/src/bin/BinSettings.tsx index 09487d9..3cb4bf7 100644 --- a/src/bin/BinSettings.tsx +++ b/src/bin/BinSettings.tsx @@ -1045,7 +1045,7 @@ export default function BinSettings(props: Props) { : - {setCustomGrain(newGrainSettings)}}/> + {setCustomGrain(newGrainSettings)}}/> } diff --git a/src/component/ComponentForm.tsx b/src/component/ComponentForm.tsx index 77f5ced..354094c 100644 --- a/src/component/ComponentForm.tsx +++ b/src/component/ComponentForm.tsx @@ -655,7 +655,7 @@ export default function ComponentForm(props: Props) { /> {useCustomGrain ? - + : void } export default function CustomGrainForm(props: Props) { - const {grainSettings, onGrainSettingsChange} = props + const {initialGrain: grainSettings, onGrainSettingsChange} = props const grainAPI = useGrainAPI() const [{as}] = useGlobalState() const [name, setName] = useState(grainSettings ? grainSettings.name : "")