aboutsummaryrefslogtreecommitdiffstats
path: root/mascara/src/app/first-time/notice-screen.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-04-03 07:24:37 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-04-03 07:24:37 +0800
commit516c1869b0f366a42282a66e14185ce630f883dd (patch)
tree2da85b6a5995ba45338fc661f1436de8a55b60cb /mascara/src/app/first-time/notice-screen.js
parent92f8157dfeffff8173f6abc896cad59ada9a48ef (diff)
downloadtangerine-wallet-browser-516c1869b0f366a42282a66e14185ce630f883dd.tar.gz
tangerine-wallet-browser-516c1869b0f366a42282a66e14185ce630f883dd.tar.zst
tangerine-wallet-browser-516c1869b0f366a42282a66e14185ce630f883dd.zip
Fix lint errors
Diffstat (limited to 'mascara/src/app/first-time/notice-screen.js')
-rw-r--r--mascara/src/app/first-time/notice-screen.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/mascara/src/app/first-time/notice-screen.js b/mascara/src/app/first-time/notice-screen.js
index 6d45f4353..a449ccfa9 100644
--- a/mascara/src/app/first-time/notice-screen.js
+++ b/mascara/src/app/first-time/notice-screen.js
@@ -8,11 +8,7 @@ import debounce from 'lodash.debounce'
import { markNoticeRead } from '../../../../ui/app/actions'
import Identicon from '../../../../ui/app/components/identicon'
import Breadcrumbs from './breadcrumbs'
-import {
- INITIALIZE_ROUTE,
- DEFAULT_ROUTE,
- INITIALIZE_BACKUP_PHRASE_ROUTE,
-} from '../../../../ui/app/routes'
+import { INITIALIZE_BACKUP_PHRASE_ROUTE } from '../../../../ui/app/routes'
import LoadingScreen from './loading-screen'
class NoticeScreen extends Component {
@@ -42,9 +38,8 @@ class NoticeScreen extends Component {
atBottom: false,
}
- componentWillMount () {
+ componentDidMount () {
if (this.props.noActiveNotices) {
- console.log('%c NOTICESCREEN NOACTIVENOTICES', 'background: #222; color: #bada55')
this.props.history.push(INITIALIZE_BACKUP_PHRASE_ROUTE)
}
@@ -55,7 +50,6 @@ class NoticeScreen extends Component {
const { markNoticeRead, lastUnreadNotice, history } = this.props
markNoticeRead(lastUnreadNotice)
.then(hasActiveNotices => {
- console.log('ACCEPT TERMS, NO ACTIVE NOTICES', hasActiveNotices, 'background: #222; color: #bada55')
if (!hasActiveNotices) {
history.push(INITIALIZE_BACKUP_PHRASE_ROUTE)
} else {