Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
feat(ui): show transactions paid to self as sent to self
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed May 16, 2020
1 parent c560bff commit e498612
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion renderer/components/Activity/Transaction/Transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,15 @@ const Transaction = ({
{activity.closeType ? (
<FormattedMessage {...messages[`closetype_${activity.closeType.toLowerCase()}`]} />
) : (
<FormattedMessage {...messages[type]} />
<>
<FormattedMessage {...messages[type]} />
{activity.isToSelf && (
<>
&nbsp;
<FormattedMessage {...messages.to_self} />
</>
)}
</>
)}
</Text>

Expand Down
1 change: 1 addition & 0 deletions renderer/components/Activity/Transaction/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ export default defineMessages({
closetype_abandoned: 'Abandoned',
pending: 'Pending',
confirmed: 'Confirmed',
to_self: '(to self)',
})

0 comments on commit e498612

Please sign in to comment.