Browse Source

fix(notification tx): update copy

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
d4917cd619
  1. 6
      app/reducers/transaction.js

6
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)
}

Loading…
Cancel
Save