fix(review): accept arbitrary amounts in payment-setup; rename m.tier → m.amount in activity text

This commit is contained in:
Jennie Robinson Faber 2026-04-19 19:15:32 +01:00
parent 9f557d7e7a
commit dfc03f851b
2 changed files with 2 additions and 3 deletions

View file

@ -56,12 +56,11 @@ const toast = useToast();
const { memberData, checkMemberStatus } = useAuth();
const { initializeHelcimPay, verifyPayment, cleanup: cleanupHelcim } = useHelcimPay();
const VALID_AMOUNTS = [5, 15, 30, 50];
const VALID_CIRCLES = ['community', 'founder', 'practitioner'];
const targetAmount = computed(() => {
const n = Number(route.query.tier);
return VALID_AMOUNTS.includes(n) ? n : null;
return Number.isInteger(n) && n > 0 ? n : null;
});
const targetCircle = computed(() => {
const c = String(route.query.circle || '');