fix(account): format contribution label via shared formatContribution helper
Renders $15/yr instead of $15 / year — uses the shared helper instead of inline cadence formatting.
This commit is contained in:
parent
426f233ccd
commit
eb6449de43
1 changed files with 2 additions and 2 deletions
|
|
@ -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(() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue