1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +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) => {
const { transactionGroup: { initialTransaction: { id } = {} } = {}, onCancel } = this.props
event.stopPropagation()
onCancel(id)
const { onCancel, onClose } = this.props
onCancel(event)
onClose()
}
handleRetry = (event) => {
const { transactionGroup: { initialTransaction: { id } = {} } = {}, onRetry } = this.props
event.stopPropagation()
onRetry(id)
const { onClose, onRetry } = this.props
onRetry(event)
onClose()
}
handleCopyTxId = () => {