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);
|
return requiresPayment(form.contributionAmount);
|
||||||
});
|
});
|
||||||
|
|
||||||
const flowSummary = computed(() => ({
|
const flowSummary = computed(() => {
|
||||||
name: form.name,
|
const amount = form.contributionAmount || 0;
|
||||||
email: form.email,
|
const suffix = cadence.value === "annual" ? "/yr" : "/mo";
|
||||||
circle: form.circle,
|
return {
|
||||||
contribution: formatContributionAmount(form.contributionAmount),
|
name: form.name,
|
||||||
}));
|
email: form.email,
|
||||||
|
circle: form.circle,
|
||||||
|
contribution: amount > 0 ? `$${amount}${suffix}` : "$0",
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
const handleSubmit = async () => {
|
const handleSubmit = async () => {
|
||||||
if (isSubmitting.value || !isFormValid.value) return;
|
if (isSubmitting.value || !isFormValid.value) return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue