summaryrefslogtreecommitdiffstats
path: root/webapp/components/error_bar.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/error_bar.jsx')
-rw-r--r--webapp/components/error_bar.jsx9
1 files changed, 7 insertions, 2 deletions
diff --git a/webapp/components/error_bar.jsx b/webapp/components/error_bar.jsx
index d28be671d..c13d0dd6a 100644
--- a/webapp/components/error_bar.jsx
+++ b/webapp/components/error_bar.jsx
@@ -58,7 +58,12 @@ export default class ErrorBar extends React.Component {
e.preventDefault();
}
- ErrorStore.clearLastError();
+ if (ErrorStore.getLastError() && ErrorStore.getLastError().email_preview) {
+ ErrorStore.clearPreviewError();
+ } else {
+ ErrorStore.clearLastError();
+ }
+
this.setState({message: null});
}
@@ -81,7 +86,7 @@ export default class ErrorBar extends React.Component {
className='error-bar__close'
onClick={this.handleClose}
>
- ×
+ {'×'}
</a>
</div>
);