Skip to content

Commit

Permalink
show correct lockedUntil date on dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
doerfli committed Jan 19, 2024
1 parent 46f01e8 commit c7bb843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/staking_dashboard/dashboard_data_fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ async function fetchStakeInfoForIndex(idx: number, bundles: Map<number, any>, re
if (bundle_nft.toNumber() in bundles) {
bundleId = bundles.get(bundle_nft.toNumber())?.bundleId;
displayName = bundles.get(bundle_nft.toNumber())?.displayName;
expiryAt = bundles.get(bundle_nft.toNumber())?.expiryAt;
expiryAt = infoRaw.lockedUntil;
} else {
const bundleInfo = await registryContract.decodeBundleData(bundle_nft);
bundleId = bundleInfo.bundleId;
displayName = bundleInfo.displayName;
expiryAt = bundleInfo.expiryAt;
expiryAt = infoRaw.lockedUntil;
bundles.set(bundle_nft.toNumber(), bundleInfo);
}

Expand Down

0 comments on commit c7bb843

Please sign in to comment.