From 68f8abbbca5a12863d3545fc292605349180878e Mon Sep 17 00:00:00 2001 From: Brad Decker Date: Fri, 29 May 2020 11:15:33 -0500 Subject: [PATCH] close details when button is pressed (#8694) --- .../transaction-list-item-details.component.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/ui/app/components/app/transaction-list-item-details/transaction-list-item-details.component.js b/ui/app/components/app/transaction-list-item-details/transaction-list-item-details.component.js index 874eab490..25cf1b9f9 100644 --- a/ui/app/components/app/transaction-list-item-details/transaction-list-item-details.component.js +++ b/ui/app/components/app/transaction-list-item-details/transaction-list-item-details.component.js @@ -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 = () => {