Skip to content

Commit

Permalink
fix: skip missing asset data
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonmaslowski committed Dec 3, 2024
1 parent d5f7e32 commit ed12374
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 ed12374

Please sign in to comment.