Skip to content

Commit

Permalink
fix(DiscordRoleRewardDataSchema): add name prop
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Dec 12, 2024
1 parent 5624e27 commit 6a059d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/rewards/DiscordRewardCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const DiscordRewardCard: FunctionComponent<RewardCardProps> = ({
return (
<RewardCard
title="Get role"
description={roleRewardData.roleId}
description={roleRewardData.name}
image={imageUrl ?? <Icon className="size-4" weight="fill" />}
className={IDENTITY_STYLES.DISCORD.borderColorClassName}
>
Expand Down
1 change: 1 addition & 0 deletions src/lib/schemas/roleReward.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const CapacityTimeSchema = z.object({
export const DiscordRoleRewardDataSchema = z
.object({
roleId: z.string(),
name: z.string(),
})
.strict();

Expand Down

0 comments on commit 6a059d3

Please # to comment.