fix(donations): Remove paid from anon donations
This commit is contained in:
parent
cb315d94fd
commit
31a4ff9d90
@ -75,11 +75,7 @@
|
|||||||
} else if (type === "anonymous") {
|
} else if (type === "anonymous") {
|
||||||
let postdata = {
|
let postdata = {
|
||||||
amount: amount_cent,
|
amount: amount_cent,
|
||||||
paidAmount: 0,
|
|
||||||
};
|
};
|
||||||
if (is_paid) {
|
|
||||||
postdata.paidAmount = amount_cent;
|
|
||||||
}
|
|
||||||
DonationService.donationControllerPostFixed(postdata)
|
DonationService.donationControllerPostFixed(postdata)
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
amount_input = 0;
|
amount_input = 0;
|
||||||
@ -337,7 +333,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if type === "fixed" || type === "anonymous"}
|
{#if type === "fixed"}
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<input
|
<input
|
||||||
bind:checked={is_paid}
|
bind:checked={is_paid}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user