diff --git a/packages/app-store/wipemycalother/components/wipeMyCalActionButton.tsx b/packages/app-store/wipemycalother/components/wipeMyCalActionButton.tsx index 9423824745..4cb19593f1 100644 --- a/packages/app-store/wipemycalother/components/wipeMyCalActionButton.tsx +++ b/packages/app-store/wipemycalother/components/wipeMyCalActionButton.tsx @@ -10,12 +10,22 @@ interface IWipeMyCalActionButtonProps { const WipeMyCalActionButton = (props: IWipeMyCalActionButtonProps) => { const { trpc } = props; + const [openDialog, setOpenDialog] = useState(false); + const { isSuccess, isLoading, data } = trpc.useQuery(["viewer.integrations"]); + return ( - <> - - - +
+ {data && + isSuccess && + !isLoading && + data?.other?.items.find((item: { type: string }) => item.type === "wipe_my_cal_other") && ( + <> + + + + )} +
); };