From 77ba69080b1a82fc9f2d5f8178c9112723f9b240 Mon Sep 17 00:00:00 2001 From: Kshitij Verma Date: Wed, 11 Oct 2023 09:46:54 +0530 Subject: [PATCH] fixed transactions issue --- src/Components/Assets/AssetManage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Components/Assets/AssetManage.tsx b/src/Components/Assets/AssetManage.tsx index 16174bc764c..a5dba41ad29 100644 --- a/src/Components/Assets/AssetManage.tsx +++ b/src/Components/Assets/AssetManage.tsx @@ -69,6 +69,8 @@ const AssetManage = (props: AssetManageProps) => { external_id: assetId, }, onResponse: ({ res, data }) => { + console.log(res, data); + console.log(data?.qr_code_id ? "not null" : "null", assetId); if (res?.status === 200 && data) { setTransactionFilter( data.qr_code_id @@ -81,8 +83,8 @@ const AssetManage = (props: AssetManageProps) => { const { data: transactions } = useQuery(routes.listAssetTransaction, { prefetch: !!asset, - ...transactionFilter, query: { + ...transactionFilter, limit, offset, },