19 - Add double-click guard to save distribution handler
This commit is contained in:
parent
0d322cde06
commit
a94aabe604
1 changed files with 2 additions and 0 deletions
|
|
@ -83,6 +83,8 @@ export default function IncomeDistributionPreview({ scenarioId }: IncomeDistribu
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleApply = async () => {
|
const handleApply = async () => {
|
||||||
|
if (isApplying) return;
|
||||||
|
|
||||||
const parsed = parseFloat(amount);
|
const parsed = parseFloat(amount);
|
||||||
if (isNaN(parsed) || parsed <= 0) return;
|
if (isNaN(parsed) || parsed <= 0) return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue