1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

close details when button is pressed (#8694)

This commit is contained in:
Brad Decker 2020-05-29 11:15:33 -05:00 committed by GitHub
parent 88bed7181f
commit 68f8abbbca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,17 +63,15 @@ export default class TransactionListItemDetails extends PureComponent {
} }
handleCancel = (event) => { handleCancel = (event) => {
const { transactionGroup: { initialTransaction: { id } = {} } = {}, onCancel } = this.props const { onCancel, onClose } = this.props
onCancel(event)
event.stopPropagation() onClose()
onCancel(id)
} }
handleRetry = (event) => { handleRetry = (event) => {
const { transactionGroup: { initialTransaction: { id } = {} } = {}, onRetry } = this.props const { onClose, onRetry } = this.props
onRetry(event)
event.stopPropagation() onClose()
onRetry(id)
} }
handleCopyTxId = () => { handleCopyTxId = () => {