Skip to content

Commit

Permalink
fix: remove 's' from 'you owes'
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechsimetka committed Sep 8, 2023
1 parent 1e08fa4 commit 5c50ebb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/lib/objects/split/views/accounting.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,20 @@
<Container grow>
<ul>
{#each usersAmounts as { user, amount }}
{@const isYou = user?.address === profile.address}
<li>
<Container grow>
<div class="chat">
<Avatar size={48} picture={user?.avatar} />
<Container direction="column">
<p>
{(user?.address === profile.address ? 'You' : user?.name) ?? 'unknown'}
{(isYou ? 'You' : user?.name) ?? 'unknown'}
</p>
<p>
{#if amount < 0n}
lent {toSignificant(-amount, decimals)} DAI
{:else if amount > 0n}
owes {toSignificant(amount, decimals)} DAI
owe {isYou ? '' : 's'} {toSignificant(amount, decimals)} DAI
{:else}
settled
{/if}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/objects/split/views/settle-now.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<div class="text-lg input">
<p>Your account</p>
<p class="text-sm">
{formatAddress(profile.address,6,6)}
{formatAddress(profile.address, 6, 6)}
</p>
</div>
</div>
Expand Down

0 comments on commit 5c50ebb

Please sign in to comment.