From f86cbdddd6e1505064f2bc13442e827229b27ec8 Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Fri, 6 Jul 2018 23:39:43 -0500 Subject: [PATCH] fix(receive-tx): dont show sent for received tx --- app/components/Activity/TransactionModal.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/app/components/Activity/TransactionModal.js b/app/components/Activity/TransactionModal.js index 9b69290d..ba40d5bd 100644 --- a/app/components/Activity/TransactionModal.js +++ b/app/components/Activity/TransactionModal.js @@ -7,6 +7,7 @@ import FaAngleDown from 'react-icons/lib/fa/angle-down' import Isvg from 'react-inlinesvg' import paperPlane from 'icons/paper_plane.svg' +import hand from 'icons/hand.svg' import link from 'icons/link.svg' import { blockExplorer } from 'utils' @@ -30,10 +31,17 @@ const TransactionModal = ({ }) => (
-
- - Sent -
+ {transaction.amount > 0 ? ( +
+ + Sent +
+ ) : ( +
+ + Received +
+ )}