Skip to content

Commit c894c79

Browse files
committed
Fix claim response handling in Erc4626DetailsSectionContentRewards component
1 parent d0b80ea commit c894c79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/omni-kit/protocols/erc-4626/components/details-section/Erc4626DetailsSectionContentRewards.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const Erc4626DetailsSectionContentRewards: FC = () => {
6767
rewardsType,
6868
claimType: MetaMorphoClaimsType.SUPPLY,
6969
}).then((data) => {
70-
if (data.claims.length > 1) setResponse(data)
70+
if (data.claims.length > 0) setResponse(data)
7171
else
7272
setResponse({
7373
claims: rewards.map(({ token }) => ({

0 commit comments

Comments
 (0)