diff options
author | Dan J Miller <danjm.com@gmail.com> | 2019-03-07 00:19:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-07 00:19:23 +0800 |
commit | d547e0b80bc98893993ece2ff4058e18f5ac6914 (patch) | |
tree | 52466b3c62be42fe6bf735a7e152ff9fed8a3d9b /ui/app | |
parent | 7160cef4c70e3174b90e52695ef00ac67d834967 (diff) | |
download | tangerine-wallet-browser-d547e0b80bc98893993ece2ff4058e18f5ac6914.tar tangerine-wallet-browser-d547e0b80bc98893993ece2ff4058e18f5ac6914.tar.gz tangerine-wallet-browser-d547e0b80bc98893993ece2ff4058e18f5ac6914.tar.bz2 tangerine-wallet-browser-d547e0b80bc98893993ece2ff4058e18f5ac6914.tar.lz tangerine-wallet-browser-d547e0b80bc98893993ece2ff4058e18f5ac6914.tar.xz tangerine-wallet-browser-d547e0b80bc98893993ece2ff4058e18f5ac6914.tar.zst tangerine-wallet-browser-d547e0b80bc98893993ece2ff4058e18f5ac6914.zip |
Only call onRecipient and onSender methods if defined in sender-to-recipient (#6247)
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/components/sender-to-recipient/sender-to-recipient.component.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/app/components/sender-to-recipient/sender-to-recipient.component.js b/ui/app/components/sender-to-recipient/sender-to-recipient.component.js index 65102a7ad..7d3436dc3 100644 --- a/ui/app/components/sender-to-recipient/sender-to-recipient.component.js +++ b/ui/app/components/sender-to-recipient/sender-to-recipient.component.js @@ -97,7 +97,9 @@ export default class SenderToRecipient extends PureComponent { onClick={() => { this.setState({ recipientAddressCopied: true }) copyToClipboard(checksummedRecipientAddress) - onRecipientClick() + if (onRecipientClick) { + onRecipientClick() + } }} > { this.renderRecipientIdenticon() } @@ -164,7 +166,9 @@ export default class SenderToRecipient extends PureComponent { onClick={() => { this.setState({ senderAddressCopied: true }) copyToClipboard(checksummedSenderAddress) - onSenderClick() + if (onSenderClick) { + onSenderClick() + } }} > { this.renderSenderIdenticon() } |