fix(admin): round monthlyRevenue and drop dead cadence ternaries
This commit is contained in:
parent
0dd68ff1aa
commit
f848773887
2 changed files with 3 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ export default defineEventHandler(async (event) => {
|
|||
stats: {
|
||||
totalMembers,
|
||||
activeEvents,
|
||||
monthlyRevenue,
|
||||
monthlyRevenue: Math.round(monthlyRevenue),
|
||||
pendingSlackInvites
|
||||
},
|
||||
recentMembers,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue