fix(donation/payment): Funny javascript number to float conversion where integers were needed

This commit is contained in:
Nicolai Ort 2023-05-18 21:34:41 +02:00
parent f1929e7cf9
commit d867c08aba
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F

View File

@ -33,7 +33,7 @@
toast.loading($_("updating-donation")); toast.loading($_("updating-donation"));
const editable = Object.assign({}, original_data); const editable = Object.assign({}, original_data);
editable.donor = editable.donor.id; editable.donor = editable.donor.id;
editable.paidAmount = paid_amount_input * 100; editable.paidAmount = Math.round(paid_amount_input * 100);
if (editable.responseType == "DISTANCEDONATION" || editable.runner) { if (editable.responseType == "DISTANCEDONATION" || editable.runner) {
editable.runner = editable.runner.id; editable.runner = editable.runner.id;
DonationService.donationControllerPutDistance( DonationService.donationControllerPutDistance(