File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export interface ChainUpgradeHandlerProps {
88}
99
1010export const ChainUpgradeHandler : React . FC < ChainUpgradeHandlerProps > = ( { upgradeTimestamps } ) => {
11- const now = useNow ( { intervalMs : 10000 } ) ;
11+ const now = useNow ( ) ;
1212
1313 // Reload page if we're passed any of the chain upgrades and the app was opened before that, so
1414 // that the block time and blocks per day metadata from the @venusprotocol /chains package are
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { AnalyticProvider } from 'libs/analytics';
66import { ErrorBoundary } from 'libs/errors' ;
77import { SentryErrorInfo } from 'libs/errors/SentryErrorInfo' ;
88import { Web3Wrapper } from 'libs/wallet' ;
9- import { Suspense , useMemo } from 'react' ;
9+ import { Suspense } from 'react' ;
1010import { Helmet } from 'react-helmet' ;
1111import { HashRouter } from 'react-router' ;
1212import { safeLazyLoad } from 'utilities' ;
@@ -23,10 +23,7 @@ const ImportPositionsModal = safeLazyLoad(() => import('containers/ImportPositio
2323
2424const App = ( ) => {
2525 const { hardforks } = useChain ( ) ;
26- const upgradeTimestamps = useMemo (
27- ( ) => hardforks ?. map ( hardfork => new Date ( hardfork . startTimestamp ) ) ?? [ ] ,
28- [ hardforks ] ,
29- ) ;
26+ const upgradeTimestamps = ( hardforks ?? [ ] ) . map ( hardfork => new Date ( hardfork . startTimestamp ) ) ;
3027
3128 return (
3229 < >
You can’t perform that action at this time.
0 commit comments