Skip to content

Commit

Permalink
Prefix amounts with plus or minus accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
range-of-motion committed Dec 2, 2023
1 parent 26bf48a commit a19a6ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ onMounted(() => {
</span>
<span class="text-sm text-gray-500">{{ transaction.tag.name }}</span>
</div>
<div class="w-20 text-right text-sm" :class="'text-' + (transaction.type === 'earning' ? 'green' : 'red') + '-600'">+{{ (transaction.amount / 100).toFixed(2) }}</div>
<div class="w-20 text-right text-sm" :class="'text-' + (transaction.type === 'earning' ? 'green' : 'red') + '-600'">{{ transaction.type === 'earning' ? '+' : '-' }}{{ (transaction.amount / 100).toFixed(2) }}</div>
</div>
</div>
</div>
Expand Down

0 comments on commit a19a6ca

Please sign in to comment.