Skip to content

Commit

Permalink
fix an UI bug in my farms page
Browse files Browse the repository at this point in the history
  • Loading branch information
brianshattuck committed Jan 16, 2025
1 parent 0bb8ea5 commit a7ba1ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/hooks/v3/useV3Farms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,13 @@ export const useGetMerklFarms = () => {
item.mainParameter.toLowerCase() ===
address.toLocaleLowerCase(),
) && amms.includes(item.ammName.toLocaleLowerCase()),
) as any[];
)
.map((item: any) => {
return {
...item,
symbolRewardToken: item['campaignParameters']['symbolRewardToken'],
};
}) as any[];
if (distributions.length < 1) {
return;
}
Expand Down
1 change: 0 additions & 1 deletion src/pages/FarmPage/V3/MerklFarmCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export const MerklFarmCard: React.FC<Props> = ({ farm }) => {
return {
...item,
dailyAmount,
symbolRewardToken: farm.symbolRewardToken,
};
})
.reduce((memo: any[], item: any) => {
Expand Down

0 comments on commit a7ba1ca

Please sign in to comment.