Skip to content

Commit

Permalink
fix: load empty card on 0 len, slice contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Aug 23, 2024
1 parent a0cb869 commit 87f29a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const EditContributions = () => {
</DialogHeader>
<DialogBody className="gap-7">
<div className="flex flex-col gap-3">
{guilds?.length === 0 && (
{guilds && guilds.length === 0 && (
<Card className="flex gap-2 border border-destructive-subtle p-4 text-destructive-subtle">
<WarningCircle size={32} weight="fill" />
<h3 className="font-medium">
Expand Down
2 changes: 1 addition & 1 deletion src/app/(marketing)/profile/_components/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const Profile = () => {
</div>
</Card>
)}
{contributions.map((contribution) => (
{contributions.slice(0, 3).map((contribution) => (
<ContributionCard contribution={contribution} key={contribution.id} />
))}
</div>
Expand Down

0 comments on commit 87f29a1

Please sign in to comment.