Skip to content

Commit

Permalink
Logic for spending display
Browse files Browse the repository at this point in the history
  • Loading branch information
kaijunfong committed Apr 26, 2024
1 parent e2b20d5 commit 8a72e2c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/views/SinglePlan.vue
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,14 @@ export default {
</v-row>

<!-- add spending logic - aka for certain range of spending cost is this much -->
<div class="my-4 text-subtitle-1">$ • Italian, Cafe</div>
<!-- Spending Logic: Display spending if reviewed, otherwise indicate not reviewed -->
<div class="my-4 text-subtitle-1">
{{
plan.creator_spending > 0
? `Total Spending: $${plan.creator_spending}`
: "Not reviewed yet"
}}
</div>

<!-- Location List -->
<div class="my-4">
Expand Down

0 comments on commit 8a72e2c

Please sign in to comment.