The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update page-client.tsx
Kiran K8bf9726cc876
diff --git a/apps/web/app/app.dub.co/embed/dashboard/page-client.tsx b/apps/web/app/app.dub.co/embed/dashboard/page-client.tsxindex 298dafdb01..b5c12cdd3e 100644--- a/apps/web/app/app.dub.co/embed/dashboard/page-client.tsx+++ b/apps/web/app/app.dub.co/embed/dashboard/page-client.tsx@@ -18,7 +18,7 @@ import {import { Copy, MoneyBill2 } from "@dub/ui/src/icons";import { getPrettyUrl } from "@dub/utils";import { Link, Program } from "@prisma/client";-import { useContext, useEffect } from "react";+import { useContext } from "react";import { LinkToken } from "../token";import useReferralAnalytics from "../use-referral-analytics";import { SaleTable } from "./sale-table";@@ -150,19 +150,6 @@ const EarningsChartContainer = () => {end,});- useEffect(() => {- if (error) {- window.parent.postMessage(- {- originator: "Dub",- event: "ERROR",- data: error.info,- },- "*",- );- }- }, [error]);-return (<EarningsCharttimeseries={timeseries}