Skip to content

Commit

Permalink
Remove empty object fallback when txn not found from addys endpoint (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchung authored Oct 23, 2024
1 parent 43ce5f4 commit 8f68e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/transactions/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const fetchTransaction = async ({
},
});

const tx = response?.data?.payload?.transaction || {};
const tx = response?.data?.payload?.transaction;
if (!tx) {
return null;
}
Expand Down

0 comments on commit 8f68e73

Please sign in to comment.