Skip to content

Commit

Permalink
fix expired time (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
snoopy1412 authored Nov 7, 2024
1 parent 478eead commit 181b65a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useUserDepositDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export function useUserDepositDetails({ enabled = true }: UseUserDepositDetailsP
if (validTokenIds && combinedInfos) {
const newDepositList = validTokenIds.map((tokenId, index) => {
const depositInfo = combinedInfos?.[index * 2]?.result || [];
const isClaimRequirePenalty = !!combinedInfos?.[index * 2 + 1]?.result || true;
const isClaimRequirePenalty = !!combinedInfos?.[index * 2 + 1]?.result;

const months = depositInfo?.[0] ?? 0;
const startAt = Number(depositInfo?.[1] ?? 0);
Expand Down

0 comments on commit 181b65a

Please sign in to comment.