File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
lib/components/OrderDialog Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { Button } from "lib/components/ui/button"
22import { Loader2 } from "lucide-react"
33import { GitHubLogoIcon } from "@radix-ui/react-icons"
44import { useEffect , useMemo , useState } from "react"
5+ import { useErrorTelemetry } from "lib/hooks/use-error-telemetry"
56import VendorQuoteCard , { type OrderQuote } from "./VendorQuoteCard"
67import { toast } from "lib/utils/toast"
78import { getWindowVar } from "lib/utils/get-registry-ky"
@@ -44,6 +45,12 @@ export const InitialOrderScreen = ({
4445 // Poll for the order quote status
4546 const { data : orderQuote } = useOrderQuotePolling ( orderQuoteId || undefined )
4647
48+ const errorMessage =
49+ ( createOrderQuoteError && ( createOrderQuoteError as any ) . error ?. message ) ||
50+ orderQuote ?. error ?. message
51+
52+ useErrorTelemetry ( { errorMessage } )
53+
4754 const redirectToStripeCheckout = async ( orderQuoteId : string ) => {
4855 const stripeCheckoutBaseUrl = getWindowVar (
4956 "TSCIRCUIT_STRIPE_CHECKOUT_BASE_URL" ,
You can’t perform that action at this time.
0 commit comments