diff --git a/src/provider.tsx b/src/provider.tsx index 4cbd417..9724077 100644 --- a/src/provider.tsx +++ b/src/provider.tsx @@ -291,7 +291,7 @@ export const StakingProvider = ({ return { ...stream, apr: aprs.streams[i], - percentage: streamsProgress[i + 1], + percentage: streamsProgress[i + 1] ?? 0, startTimestamp: firstScheduleTime ? firstScheduleTime.toNumber() * 1000 : 0, diff --git a/src/types/stream.ts b/src/types/stream.ts index 273c0ba..271cb2f 100644 --- a/src/types/stream.ts +++ b/src/types/stream.ts @@ -14,7 +14,7 @@ export type Stream = { coingeckoName: CoingeckoToken; decimals: number; id: number; - percentage?: number; + percentage: number; symbol: string; name: string; price?: number;