Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
fix: remove wrong null check
Browse files Browse the repository at this point in the history
  • Loading branch information
hirbod committed Oct 30, 2023
1 parent b864f7f commit d6b94d1
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions packages/app/components/creator-token/invite-creator-token.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -138,8 +109,6 @@ export const InviteCreatorToken = () => {

const inviteText = invitesData.length === 1 ? "invite" : "invites";

if (!data) return null;

return (
<ScrollView
contentContainerStyle={{
Expand Down

0 comments on commit d6b94d1

Please sign in to comment.