Skip to content

Commit

Permalink
fixed transactions issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijv256 committed Oct 11, 2023
1 parent 7c1bdfe commit 77ba690
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Components/Assets/AssetManage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -81,8 +83,8 @@ const AssetManage = (props: AssetManageProps) => {

const { data: transactions } = useQuery(routes.listAssetTransaction, {
prefetch: !!asset,
...transactionFilter,
query: {
...transactionFilter,
limit,
offset,
},
Expand Down

0 comments on commit 77ba690

Please sign in to comment.