fix(join): format flowSummary contribution in cadence units
This commit is contained in:
parent
2f229cbfa0
commit
3126ddb8ea
1 changed files with 10 additions and 6 deletions
|
|
@ -394,12 +394,16 @@ const needsPayment = computed(() => {
|
|||
return requiresPayment(form.contributionAmount);
|
||||
});
|
||||
|
||||
const flowSummary = computed(() => ({
|
||||
name: form.name,
|
||||
email: form.email,
|
||||
circle: form.circle,
|
||||
contribution: formatContributionAmount(form.contributionAmount),
|
||||
}));
|
||||
const flowSummary = computed(() => {
|
||||
const amount = form.contributionAmount || 0;
|
||||
const suffix = cadence.value === "annual" ? "/yr" : "/mo";
|
||||
return {
|
||||
name: form.name,
|
||||
email: form.email,
|
||||
circle: form.circle,
|
||||
contribution: amount > 0 ? `$${amount}${suffix}` : "$0",
|
||||
};
|
||||
});
|
||||
|
||||
const handleSubmit = async () => {
|
||||
if (isSubmitting.value || !isFormValid.value) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue