Skip to content

Commit

Permalink
Fix nftName casing
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekjain23 committed Jan 9, 2025
1 parent 8125325 commit 658f068
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions apps/core/src/hooks/useNftDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function useNftDetails(nftId: string, accountAddress: string | null) {

const { data: nftDisplayData, isPending: isPendingNftDislpay } = useGetNFTDisplay(nftId);

const nftName = nftDisplayData?.name || formatAddress(nftId);
const NftName = nftDisplayData?.name || formatAddress(nftId);
const nftImageUrl = nftDisplayData?.imageUrl || '';

// Extract either the attributes, or use the top-level NFT fields:
Expand Down Expand Up @@ -59,7 +59,7 @@ export function useNftDetails(nftId: string, accountAddress: string | null) {
isLoading,
objectData,
isNftLoading,
nftName,
NftName,
nftImageUrl,
ownerAddress,
isCheckingAssetTransferability,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function DetailsView({ onClose, asset, onSend }: DetailsViewProps) {
const objectId = asset.objectId;

const {
nftName,
NftName,
nftImageUrl,
nftDisplayData,
ownerAddress,
Expand Down Expand Up @@ -59,9 +59,9 @@ export function DetailsView({ onClose, asset, onSend }: DetailsViewProps) {
<div className="w-[172px]">
<VisualAssetCard
assetSrc={nftImageUrl}
assetTitle={nftName}
assetTitle={NftName}
assetType={VisualAssetType.Image}
altText={nftName || 'NFT'}
altText={NftName || 'NFT'}
isHoverable={false}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function SendView({ asset, onClose, onBack }: SendViewProps) {
const senderAddress = account?.address ?? '';
const objectId = asset?.objectId || '';

const { nftName, nftImageUrl } = useNftDetails(objectId, senderAddress);
const { NftName, nftImageUrl } = useNftDetails(objectId, senderAddress);
return (
<>
<Header title="Send asset" onClose={onClose} titleCentered onBack={onBack} />
Expand All @@ -39,15 +39,15 @@ export function SendView({ asset, onClose, onBack }: SendViewProps) {
<div className="w-[172px]">
<VisualAssetCard
assetSrc={nftImageUrl}
assetTitle={nftName}
assetTitle={NftName}
assetType={VisualAssetType.Image}
altText={nftName || 'NFT'}
altText={NftName || 'NFT'}
isHoverable={false}
/>
</div>
<div className="flex w-full flex-col gap-md">
<div className="flex flex-col items-center gap-xxxs">
<Title title={nftName} />
<Title title={NftName} />
</div>
<AddressInput name="to" placeholder="Enter Address" />
</div>
Expand Down

0 comments on commit 658f068

Please sign in to comment.