Skip to content

Commit c07755c

Browse files
committed
Dashboard: Add missing asset creation successs tracking for nft
1 parent c356813 commit c07755c

File tree

1 file changed

+9
-1
lines changed
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/launch

1 file changed

+9
-1
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/launch/launch-nft.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ import Link from "next/link";
99
import { useMemo, useRef, useState } from "react";
1010
import { defineChain, type ThirdwebClient } from "thirdweb";
1111
import { TokenProvider, TokenSymbol, useActiveWallet } from "thirdweb/react";
12-
import { reportAssetCreationFailed } from "@/analytics/report";
12+
import {
13+
reportAssetCreationFailed,
14+
reportAssetCreationSuccessful,
15+
} from "@/analytics/report";
1316
import type { MultiStepState } from "@/components/blocks/multi-step-status/multi-step-status";
1417
import { MultiStepStatus } from "@/components/blocks/multi-step-status/multi-step-status";
1518
import { WalletAddress } from "@/components/blocks/wallet-address";
@@ -222,6 +225,11 @@ export function LaunchNFT(props: {
222225
}
223226
}
224227

228+
reportAssetCreationSuccessful({
229+
assetType: "nft",
230+
contractType: ercType === "erc721" ? "DropERC721" : "DropERC1155",
231+
});
232+
225233
props.onLaunchSuccess();
226234
batchesProcessedRef.current = 0;
227235
}

0 commit comments

Comments
 (0)