fix(account): format contribution label via shared formatContribution helper
All checks were successful
Test / vitest (push) Successful in 11m7s
Test / playwright (push) Successful in 16m3s
Test / Notify on failure (push) Has been skipped

Renders $15/yr instead of $15 / year — uses the shared helper instead of inline cadence formatting.
This commit is contained in:
Jennie Robinson Faber 2026-05-24 17:33:35 +01:00
parent 426f233ccd
commit eb6449de43

View file

@ -295,7 +295,7 @@
</template> </template>
<script setup> <script setup>
import { requiresPayment } from '~/config/contributions'; import { requiresPayment, formatContribution } from '~/config/contributions';
import { STATUS_LABELS } from '~/config/memberStatus'; import { STATUS_LABELS } from '~/config/memberStatus';
useSiteMeta({ title: 'Account', noindex: true }); useSiteMeta({ title: 'Account', noindex: true });
@ -384,7 +384,7 @@ const contributionChangeHint = computed(() => {
const currentContributionLabel = computed(() => { const currentContributionLabel = computed(() => {
const amount = Number(memberData.value?.contributionAmount || 0); const amount = Number(memberData.value?.contributionAmount || 0);
if (!amount) return '$0'; if (!amount) return '$0';
return cadence.value === 'annual' ? `$${amount} / year` : `$${amount} / month`; return formatContribution(amount, cadence.value);
}); });
const nextChargeAmount = computed(() => { const nextChargeAmount = computed(() => {