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") {
let postdata = {
amount: amount_cent,
paidAmount: 0,
};
if (is_paid) {
postdata.paidAmount = amount_cent;
}
DonationService.donationControllerPostFixed(postdata)
.then((result) => {
amount_input = 0;
@ -337,7 +333,7 @@
{/if}
</div>
{/if}
{#if type === "fixed" || type === "anonymous"}
{#if type === "fixed"}
<div class="flex">
<input
bind:checked={is_paid}