From e24c837bac5b4cadeafedd39c37caf7567c5c219 Mon Sep 17 00:00:00 2001 From: Pedro Guerreiro Date: Mon, 25 Nov 2024 17:15:33 +0000 Subject: [PATCH] fix(debug mode): its not here page shown when deleting transaction and transaction violations --- src/pages/Debug/Transaction/DebugTransactionPage.tsx | 1 + .../Debug/TransactionViolation/DebugTransactionViolationPage.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/pages/Debug/Transaction/DebugTransactionPage.tsx b/src/pages/Debug/Transaction/DebugTransactionPage.tsx index ed9e945799d3..88d020eb1a84 100644 --- a/src/pages/Debug/Transaction/DebugTransactionPage.tsx +++ b/src/pages/Debug/Transaction/DebugTransactionPage.tsx @@ -65,6 +65,7 @@ function DebugTransactionPage({ }} onDelete={() => { Debug.setDebugData(`${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`, null); + Navigation.goBack(); }} validate={DebugUtils.validateTransactionDraftProperty} > diff --git a/src/pages/Debug/TransactionViolation/DebugTransactionViolationPage.tsx b/src/pages/Debug/TransactionViolation/DebugTransactionViolationPage.tsx index 6750004f3347..6b094ae7fd7c 100644 --- a/src/pages/Debug/TransactionViolation/DebugTransactionViolationPage.tsx +++ b/src/pages/Debug/TransactionViolation/DebugTransactionViolationPage.tsx @@ -46,6 +46,7 @@ function DebugTransactionViolationPage({ const updatedTransactionViolations = [...(transactionViolations ?? [])]; updatedTransactionViolations.splice(Number(index), 1); Debug.setDebugData(`${ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS}${transactionID}`, updatedTransactionViolations); + Navigation.goBack(); }, [index, transactionID, transactionViolations]); if (!transactionViolation) {