Skip to content

Commit 8074836

Browse files
fix: skip missing asset data (#3254)
1 parent 3364b53 commit 8074836

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/renderer/app/utils/transactionsCsvGenerator.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ const transactionsCsvGenerator = async ({
187187

188188
const valueTokens = filterAssets(assets, type, isInternalAddress)
189189
.map(({ policyId, assetName, quantity }) => {
190-
const { fingerprint, metadata } = getAsset(policyId, assetName);
190+
const assetData = getAsset(policyId, assetName);
191+
const fingerprint = assetData?.fingerprint || 'unknown fingerprint';
192+
const metadata = assetData?.metadata || {};
191193
const formattedAmount = formattedTokenWalletAmount(
192194
quantity,
193195
metadata,

0 commit comments

Comments
 (0)