Skip to content

Commit

Permalink
fix(ux): root component error is not fatal
Browse files Browse the repository at this point in the history
Signed-off-by: Godefroy Ponsinet <godefroy.ponsinet@outlook.com>
  • Loading branch information
90dy committed Sep 5, 2019
1 parent 19e59ce commit 116287f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions client/packages/screen/Accounts/Auth.js
Expand Up @@ -51,17 +51,6 @@ class Auth extends PureComponent {
}
}

init = async config => {
const { t, bridge } = this.props

this.setState({ loading: true, message: t('core.initializing') })
try {
await bridge.daemon.initialize(config)
} catch (err) {
console.warn('initialize', err)
}
}

list = async () => {
const { t, bridge } = this.props
this.setState({ loading: true, message: t('core.account-listing') })
Expand Down Expand Up @@ -89,7 +78,6 @@ class Auth extends PureComponent {
let { firstLaunch } = options || {}

if (nickname == null) {
// await this.init() @FIXME: remove this ?
const list = await this.list()
if (list.length <= 0) {
const deviceName = defaultUsername()
Expand Down
2 changes: 1 addition & 1 deletion client/packages/screen/App.js
Expand Up @@ -48,7 +48,7 @@ export default class App extends PureComponent {
}

componentDidCatch(error, info) {
exceptionHandler(error, true)
exceptionHandler(error, false)
}

componentDidMount() {
Expand Down

0 comments on commit 116287f

Please sign in to comment.