From 4a5f16e1bc5b53e3cb414c6d5c78ddb97e08e975 Mon Sep 17 00:00:00 2001 From: raizasafeel <89463672+raizasafeel@users.noreply.github.com> Date: Thu, 5 Mar 2026 02:05:21 +0530 Subject: [PATCH] fix(settings): transaction button now redirects successfully to batch/course --- .../Transactions/TransactionDetails.vue | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/frontend/src/components/Settings/Transactions/TransactionDetails.vue b/frontend/src/components/Settings/Transactions/TransactionDetails.vue index 5ad0ebba..38989a7b 100644 --- a/frontend/src/components/Settings/Transactions/TransactionDetails.vue +++ b/frontend/src/components/Settings/Transactions/TransactionDetails.vue @@ -233,17 +233,15 @@ const updateTransaction = () => { } const openDetails = () => { - if (props.data) { - const docType = props.data.payment_for_document_type - const docName = props.data.payment_for_document - if (docType && docName) { - router.push({ - name: docType == 'LMS Course' ? 'CourseDetail' : 'BatchDetail', - params: { - [docType == 'LMS Course' ? 'courseName' : 'batchName']: docName, - }, - }) - } + const docType = transactionData.value?.payment_for_document_type + const docName = transactionData.value?.payment_for_document + if (docType && docName) { + router.push({ + name: docType == 'LMS Course' ? 'CourseDetail' : 'BatchDetail', + params: { + [docType == 'LMS Course' ? 'courseName' : 'batchName']: docName, + }, + }) show.value = false } }