Skip to content

Commit

Permalink
fix: skip missing asset data (#3254)
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonmaslowski authored Dec 3, 2024
1 parent 3364b53 commit 8074836
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/renderer/app/utils/transactionsCsvGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ const transactionsCsvGenerator = async ({

const valueTokens = filterAssets(assets, type, isInternalAddress)
.map(({ policyId, assetName, quantity }) => {
const { fingerprint, metadata } = getAsset(policyId, assetName);
const assetData = getAsset(policyId, assetName);
const fingerprint = assetData?.fingerprint || 'unknown fingerprint';
const metadata = assetData?.metadata || {};
const formattedAmount = formattedTokenWalletAmount(
quantity,
metadata,
Expand Down

0 comments on commit 8074836

Please sign in to comment.