diff --git a/src/app/api/getDelegationsV2.ts b/src/app/api/getDelegationsV2.ts index b91f81ea..8060bdd0 100644 --- a/src/app/api/getDelegationsV2.ts +++ b/src/app/api/getDelegationsV2.ts @@ -33,7 +33,7 @@ interface DelegationV2API { start_height: number; end_height: number; bbn_inception_height: number; - bbn_inception_time: number; + bbn_inception_time: string; slashing_tx_hex: string; }; delegation_unbonding: { diff --git a/src/app/components/Staking/Staking.tsx b/src/app/components/Staking/Staking.tsx index 0f8ddff1..6472db39 100644 --- a/src/app/components/Staking/Staking.tsx +++ b/src/app/components/Staking/Staking.tsx @@ -319,7 +319,6 @@ export const Staking = () => { defaultFeeRate, stakingTimeBlocks, estimateStakingFee, - showError, ]); // Select the finality provider from the list diff --git a/src/app/hooks/storage/useDelegationStorage.ts b/src/app/hooks/storage/useDelegationStorage.ts index 65d8891a..42996d28 100644 --- a/src/app/hooks/storage/useDelegationStorage.ts +++ b/src/app/hooks/storage/useDelegationStorage.ts @@ -44,7 +44,7 @@ export function useDelegationStorage( unbondingTxHex: "", stakingSlashingTxHex: "", bbnInceptionHeight: 0, - bbnInceptionTime: 0, + bbnInceptionTime: "", slashingTxHex: "", unbondingSlashingTxHex: "", }) as DelegationV2, diff --git a/src/app/state/DelegationV2State.tsx b/src/app/state/DelegationV2State.tsx index d15957f9..c14f245f 100644 --- a/src/app/state/DelegationV2State.tsx +++ b/src/app/state/DelegationV2State.tsx @@ -58,13 +58,13 @@ export function DelegationV2State({ children }: PropsWithChildren) { fetchMoreDelegations: fetchNextPage, }), [ - data?.delegations, + delegations, isFetchingNextPage, hasNextPage, addPendingDelegation, updateDelegationStatus, - fetchNextPage, findDelegationByTxHash, + fetchNextPage, ], ); diff --git a/src/app/types/delegationsV2.ts b/src/app/types/delegationsV2.ts index 19eb310c..da6119af 100644 --- a/src/app/types/delegationsV2.ts +++ b/src/app/types/delegationsV2.ts @@ -13,7 +13,7 @@ export interface DelegationV2 extends DelegationLike { stakerBtcPkHex: string; stakingTime: number; bbnInceptionHeight: number; - bbnInceptionTime: number; + bbnInceptionTime: string; startHeight: number; endHeight: number; unbondingTime: number; diff --git a/src/components/delegations/DelegationList/components/Inscription.tsx b/src/components/delegations/DelegationList/components/Inception.tsx similarity index 73% rename from src/components/delegations/DelegationList/components/Inscription.tsx rename to src/components/delegations/DelegationList/components/Inception.tsx index 6e75c998..41ea9d77 100644 --- a/src/components/delegations/DelegationList/components/Inscription.tsx +++ b/src/components/delegations/DelegationList/components/Inception.tsx @@ -1,10 +1,10 @@ import { durationTillNow } from "@/utils/time"; -interface Inscription { +interface Inception { value: string; } -export function Inscription({ value }: Inscription) { +export function Inception({ value }: Inception) { const currentTime = Date.now(); return (