diff --git a/src/client/app/components/unit/CreateUnitModalComponent.tsx b/src/client/app/components/unit/CreateUnitModalComponent.tsx index 401778c75..2b847e63c 100644 --- a/src/client/app/components/unit/CreateUnitModalComponent.tsx +++ b/src/client/app/components/unit/CreateUnitModalComponent.tsx @@ -125,7 +125,7 @@ export default function CreateUnitModalComponent() { setValidUnit( state.name !== '' && (state.typeOfUnit !== UnitType.suffix || state.suffix !== '') && customRateValid(Number(state.secInRate)) && - (canSave || !isCustomRate(state.secInRate)) + (canSave && isCustomRate(state.secInRate)) ); }, [state.name, state.secInRate, state.typeOfUnit, state.suffix, canSave]);