Skip to content

Commit

Permalink
Merge pull request #445 from range-of-motion/prefix-amounts-with-plus…
Browse files Browse the repository at this point in the history
…-or-minus-accordingly

Prefix amounts with plus or minus accordingly
  • Loading branch information
range-of-motion authored Dec 2, 2023
2 parents 26bf48a + a19a6ca commit 33b5223
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 33b5223

Please sign in to comment.