Skip to content

Commit

Permalink
chore: show maintenance info
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Aug 9, 2023
1 parent a5c6f69 commit a868212
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/Alert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import SimpleButton from '../SimpleButton'
import { ComponentActions } from '../../contexts/actions'
import { AppCachedKeys } from '../../constants/cache'
import styles from './styles.module.scss'
import { isMainnet } from '../../utils/chain'

const FIFTEEN_MINUTES = 15 * 60 * 1000

Expand Down Expand Up @@ -51,9 +52,9 @@ const Alert = () => {
)
}

// if (isMainnet()) {
// return <div className={styles.container}>{i18n.t('error.maintain')}</div>
// }
if (!isMainnet()) {
return <div className={styles.container}>{i18n.t('error.maintain')}</div>
}

return maintenanceAlertVisible ? (
<AlertPanel isEn={currentLanguage() === 'en'}>
Expand Down

0 comments on commit a868212

Please sign in to comment.