Skip to content

Commit

Permalink
Merge branch 'NickKelly1-fix/simplehash-nft-types' into devop/release…
Browse files Browse the repository at this point in the history
…-prep
  • Loading branch information
kvhnuke committed Aug 15, 2024
2 parents d032c0c + 6f6039a commit 1acbb9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/extension/src/libs/nft-handlers/types/simplehash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export interface SHNFTType {
};
external_url: string;
collection: {
name: string;
description: string;
name: null | string;
description: null | string;
image_url: string;
external_url: string;
collection_id: string;
Expand Down
4 changes: 2 additions & 2 deletions packages/extension/src/types/nft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export interface NFTItem {
type: NFTType;
}
export interface NFTCollection {
name: string;
name: null | string;
image: string;
description: string;
description: null | string;
items: NFTItem[];
contract: string;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<div class="network-nfts__category-head">
<p>
{{
collection.name.length > 25
collection.name?.length > 25
? $filters.replaceWithEllipsis(collection.name, 25, 4)
: collection.name
: collection.name || "UNKNOWN"
}}
</p>
<a
Expand Down

1 comment on commit 1acbb9d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.