Skip to content

Commit

Permalink
create checks for nonstandard rate
Browse files Browse the repository at this point in the history
  • Loading branch information
gyordong committed Dec 26, 2024
1 parent b9599f5 commit 06cd31f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit 06cd31f

Please sign in to comment.