From d6b94d1843f98fb77d88280eab7be87d328f4c9e Mon Sep 17 00:00:00 2001 From: Hirbod Mirjavadi Date: Mon, 30 Oct 2023 13:11:11 +0100 Subject: [PATCH] fix: remove wrong null check --- .../creator-token/invite-creator-token.tsx | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/packages/app/components/creator-token/invite-creator-token.tsx b/packages/app/components/creator-token/invite-creator-token.tsx index 649978a82..2030509ef 100644 --- a/packages/app/components/creator-token/invite-creator-token.tsx +++ b/packages/app/components/creator-token/invite-creator-token.tsx @@ -23,35 +23,6 @@ import { useRedeemedCreatorTokensInvites, } from "./hooks/use-invite-creator-token"; -const data = [ - { - id: 1, - code: "AFD43A", - }, - { - id: 2, - code: "DAA43A", - }, -]; - -const claimedData = [ - { - id: 1, - date: "2021-09-01", - username: "am", - }, - { - id: 2, - date: "2021-09-01", - username: "hirbod", - }, - { - id: 3, - date: "2021-09-01", - username: "maxiricha", - }, -]; - const InviteCreatorTokenItem = ({ code }: { code: string }) => { const isDark = useIsDarkMode(); const copyCode = useCallback(async () => { @@ -138,8 +109,6 @@ export const InviteCreatorToken = () => { const inviteText = invitesData.length === 1 ? "invite" : "invites"; - if (!data) return null; - return (