From d4917cd619bd3195cc74b5bbaff8ff597dddcc77 Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Fri, 22 Sep 2017 21:11:47 -0500 Subject: [PATCH] fix(notification tx): update copy --- app/reducers/transaction.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/reducers/transaction.js b/app/reducers/transaction.js index beaa2a5e..bfe25c3f 100644 --- a/app/reducers/transaction.js +++ b/app/reducers/transaction.js @@ -71,7 +71,11 @@ export const transactionError = () => (dispatch) => { export const newTransaction = (event, { transaction }) => (dispatch) => { dispatch({ type: ADD_TRANSACTION, transaction }) - showNotification('New transaction!', 'You have a new transaction') + // HTML 5 desktop notification for the new transaction + const notifTitle = transaction.amount > 0 ? `On-chain Transaction Received!` : `On-chain Transaction Sent!` + const notifBody = transaction.amount > 0 ? `Lucky you, you just received a new on-chain transaction. I'm jealous.` : `Hate to see em' go but love to watch em' leave. Your on-chain transaction successfully sent.` + + showNotification(notifTitle, notifBody) }