fix(admin): round monthlyRevenue and drop dead cadence ternaries

This commit is contained in:
Jennie Robinson Faber 2026-05-23 15:52:26 +01:00
parent 0dd68ff1aa
commit f848773887
2 changed files with 3 additions and 3 deletions

View file

@ -192,7 +192,7 @@
</select>
</div>
<div class="field">
<label>Contribution ({{ newMember.billingCadence === 'annual' ? '$/yr' : '$/mo' }})</label>
<label>Contribution ($/mo)</label>
<input v-model.number="newMember.contributionAmount" type="number" min="0" step="1">
</div>
<div class="modal-actions">
@ -286,7 +286,7 @@
<td>{{ row.name }}</td>
<td class="col-email">{{ row.email }}</td>
<td>{{ row.circle }}</td>
<td>${{ row.contributionAmount }}{{ row.billingCadence === 'annual' ? '/yr' : '/mo' }}</td>
<td>${{ row.contributionAmount }}/mo</td>
</tr>
</tbody>
</table>

View file

@ -46,7 +46,7 @@ export default defineEventHandler(async (event) => {
stats: {
totalMembers,
activeEvents,
monthlyRevenue,
monthlyRevenue: Math.round(monthlyRevenue),
pendingSlackInvites
},
recentMembers,