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>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<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">
|
<input v-model.number="newMember.contributionAmount" type="number" min="0" step="1">
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-actions">
|
<div class="modal-actions">
|
||||||
|
|
@ -286,7 +286,7 @@
|
||||||
<td>{{ row.name }}</td>
|
<td>{{ row.name }}</td>
|
||||||
<td class="col-email">{{ row.email }}</td>
|
<td class="col-email">{{ row.email }}</td>
|
||||||
<td>{{ row.circle }}</td>
|
<td>{{ row.circle }}</td>
|
||||||
<td>${{ row.contributionAmount }}{{ row.billingCadence === 'annual' ? '/yr' : '/mo' }}</td>
|
<td>${{ row.contributionAmount }}/mo</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ export default defineEventHandler(async (event) => {
|
||||||
stats: {
|
stats: {
|
||||||
totalMembers,
|
totalMembers,
|
||||||
activeEvents,
|
activeEvents,
|
||||||
monthlyRevenue,
|
monthlyRevenue: Math.round(monthlyRevenue),
|
||||||
pendingSlackInvites
|
pendingSlackInvites
|
||||||
},
|
},
|
||||||
recentMembers,
|
recentMembers,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue