This commit is contained in:
@@ -98,11 +98,6 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (amount > selectedSettlement.amount) {
|
|
||||||
error = 'Settlement amount cannot exceed the debt amount';
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
submitting = true;
|
submitting = true;
|
||||||
error = null;
|
error = null;
|
||||||
@@ -264,13 +259,11 @@
|
|||||||
type="number"
|
type="number"
|
||||||
step="0.01"
|
step="0.01"
|
||||||
min="0.01"
|
min="0.01"
|
||||||
max={selectedSettlement.amount}
|
|
||||||
bind:value={settlementAmount}
|
bind:value={settlementAmount}
|
||||||
placeholder="0.00"
|
placeholder="0.00"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<small class="max-amount">
|
<small class="max-amount">
|
||||||
Maximum: {formatCurrency(selectedSettlement.amount)}
|
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user