Skip to content

Commit 5912e50

Browse files
committed
turn off mintgarden profile on nft list
1 parent a1235f3 commit 5912e50

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/components/NftGroupCard.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
} from '@/bindings';
77
import { NftGroupMode } from '@/hooks/useNftParams';
88
import useOfferStateWithDefault from '@/hooks/useOfferStateWithDefault';
9-
import { getMintGardenProfile } from '@/lib/marketplaces';
9+
//import { getMintGardenProfile } from '@/lib/marketplaces';
1010
import { t } from '@lingui/core/macro';
1111
import { Trans } from '@lingui/react/macro';
1212
import { writeText } from '@tauri-apps/plugin-clipboard-manager';
@@ -81,7 +81,12 @@ export function NftGroupCard({
8181
// Fetch profile data for DID cards
8282
useEffect(() => {
8383
if (!isCollection && isDidRecord(item)) {
84-
getMintGardenProfile(item.launcher_id).then(setDidProfile);
84+
setDidProfile({
85+
encoded_id: item.launcher_id,
86+
name: item.name || item.launcher_id.slice(0, 8),
87+
avatar_uri: null,
88+
});
89+
//getMintGardenProfile(item.launcher_id).then(setDidProfile);
8590
}
8691
}, [isCollection, item]);
8792
// Type guards to help TypeScript narrow the types

0 commit comments

Comments
 (0)