fix(donations): Remove paid from anon donations

This commit is contained in:
Nicolai Ort 2025-04-28 19:55:47 +02:00
parent cb315d94fd
commit 31a4ff9d90
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F

View File

@ -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}