diff --git a/components/expenses/Card.client.vue b/components/expenses/Card.client.vue index 4435022..0a605b3 100644 --- a/components/expenses/Card.client.vue +++ b/components/expenses/Card.client.vue @@ -35,8 +35,10 @@ const concerns = computed(() => { }); const expenseAmount = computed(() => dinero(JSON.parse(props.expense.amount))); -const expenseCurrency = computed( - () => toSnapshot(expenseAmount.value).currency +const expenseOgAmount = computed(() => + props.expense.originalAmount + ? dinero(JSON.parse(props.expense.originalAmount)) + : undefined ); const impact = computed(() => { @@ -44,7 +46,9 @@ const impact = computed(() => { (s) => s.memberId === props.currentMember ); const selfShare = - idx !== -1 ? props.resolvedShares[idx] : zero(expenseCurrency.value); + idx !== -1 + ? props.resolvedShares[idx] + : zero(toSnapshot(expenseAmount.value).currency); if (props.expense.authorId === props.currentMember) { return subtract(expenseAmount.value, selfShare); } else { @@ -73,7 +77,12 @@ const expenseFormStore = useExpenseFormStore();

{{ expense.title }} - {{ toString(expenseAmount) }} +
+ {{ toString(expenseAmount) }} + + ({{ toString(expenseOgAmount) }}) + +

diff --git a/components/expenses/View.client.vue b/components/expenses/View.client.vue index 6026217..ea09ca2 100644 --- a/components/expenses/View.client.vue +++ b/components/expenses/View.client.vue @@ -1,6 +1,12 @@ @@ -42,18 +47,11 @@ watchEffect(() => {

-