summaryrefslogtreecommitdiffstats
path: root/web/react/components/confirm_modal.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-10-30 16:33:51 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-11-02 15:10:50 -0500
commite56d21a9208209d515b645f95d293eae51f51f8d (patch)
treee272c8e18998ba0b89125f81d1bd45d0fdb55059 /web/react/components/confirm_modal.jsx
parent738568e5a9726b3a1b2536a20ab6627c5e9fb01e (diff)
downloadchat-e56d21a9208209d515b645f95d293eae51f51f8d.tar.gz
chat-e56d21a9208209d515b645f95d293eae51f51f8d.tar.bz2
chat-e56d21a9208209d515b645f95d293eae51f51f8d.zip
Added a confirmation dialog for unsaved theme changes and removed unnecessary dialog close handling
Diffstat (limited to 'web/react/components/confirm_modal.jsx')
-rw-r--r--web/react/components/confirm_modal.jsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/web/react/components/confirm_modal.jsx b/web/react/components/confirm_modal.jsx
index 60069b2b1..bc3a0b814 100644
--- a/web/react/components/confirm_modal.jsx
+++ b/web/react/components/confirm_modal.jsx
@@ -11,9 +11,7 @@ export default class ConfirmModal extends React.Component {
}
handleConfirm() {
- if (this.props.onConfirm) {
- this.props.onConfirm();
- }
+ this.props.onConfirm();
}
render() {