Skip to content

Commit

Permalink
Merge pull request #303 from algorandfoundation/asset_name
Browse files Browse the repository at this point in the history
fix: use name-b64 in case there is no name
  • Loading branch information
negar-abbasi authored Oct 30, 2024
2 parents 4fff7e0 + d742594 commit 0157d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/assets/mappers/asset-summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AssetSummary } from '../models'
export const asAssetSummary = (assetResult: AssetResult): AssetSummary => {
return {
id: assetResult.index,
name: assetResult.params.name,
name: assetResult.params.name ?? assetResult.params['name-b64']?.toString(),
decimals: Number(assetResult.params.decimals),
unitName: assetResult.params['unit-name'],
creator: assetResult.params.creator,
Expand Down

0 comments on commit 0157d37

Please sign in to comment.