diff --git a/src/app/containers/SalesPage/hooks/useSaleEndTime.ts b/src/app/containers/SalesPage/hooks/useSaleEndTime.ts index 2cea473f0..9e92787a8 100644 --- a/src/app/containers/SalesPage/hooks/useSaleEndTime.ts +++ b/src/app/containers/SalesPage/hooks/useSaleEndTime.ts @@ -1,13 +1,20 @@ import { useEffect, useState } from 'react'; import moment from 'moment'; import { useCacheCallWithValue } from '../../../hooks/useCacheCallWithValue'; +import { currentNetwork } from '../../../../utils/classifiers'; // 12.30 GTM, 15th Jan const DATE_FORMAT = 'HH:mm [GMT], Do MMM'; export function useSaleEndTime() { const [endDate, setEndDate] = useState( - moment('2021-01-15 15:30+0').utc(false).toDate(), + moment( + currentNetwork === 'testnet' + ? '2021-01-15 15:30+0' + : '2021-01-21 15:30+0', + ) + .utc(false) + .toDate(), ); const [endDateString, setEndDateString] = useState( moment(endDate).format(DATE_FORMAT), diff --git a/src/app/containers/SalesPage/index.tsx b/src/app/containers/SalesPage/index.tsx index 7f1600235..7b53d77ac 100644 --- a/src/app/containers/SalesPage/index.tsx +++ b/src/app/containers/SalesPage/index.tsx @@ -126,20 +126,24 @@ export function SalesPage() { )} - {!isConnected ? ( - - ) : ( + {currentNetwork === 'testnet' && ( <> - {Number(state.maxDeposit) === 0 ? ( - + {!isConnected ? ( + ) : ( <> - {state.step === 1 && } - {state.step === 2 && } - {state.step === 3 && } - {state.step === 4 && } - {state.step === 5 && } - {state.step === 6 && } + {Number(state.maxDeposit) === 0 ? ( + + ) : ( + <> + {state.step === 1 && } + {state.step === 2 && } + {state.step === 3 && } + {state.step === 4 && } + {state.step === 5 && } + {state.step === 6 && } + + )} )}