From 9d301349ab434dc744546918fe026d50485a0797 Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 24 Apr 2017 00:53:41 -0700 Subject: [feat] usable vpn ui --- ui/app/components/main_panel/email_section.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui/app/components/main_panel/email_section.js') diff --git a/ui/app/components/main_panel/email_section.js b/ui/app/components/main_panel/email_section.js index cab637be..fcfd36cf 100644 --- a/ui/app/components/main_panel/email_section.js +++ b/ui/app/components/main_panel/email_section.js @@ -30,11 +30,11 @@ export default class EmailSection extends React.Component { componentWillMount() { this.updateStatus(this.props.account.address) - bitmask.events.register("MAIL_STATUS_CHANGED", this.updateStatus) + bitmask.events.register("MAIL_STATUS_CHANGED", 'email section update', this.updateStatus) } componentWillUnmount() { - bitmask.events.unregister("MAIL_STATUS_CHANGED") + bitmask.events.unregister("MAIL_STATUS_CHANGED", 'email section update', this.updateStatus) } updateStatus(address) { @@ -46,7 +46,7 @@ export default class EmailSection extends React.Component { status: status.status, error: status.error }) - }, + }, error => { this.setState({ error: error, -- cgit v1.2.3