From 7f2f781a770551224e2e08f2946212c95dc0f02b Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Thu, 8 Jun 2017 16:41:53 +0200 Subject: [PATCH] Don't try to save proposal when invalid --- app/components/add-proposal/component.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/components/add-proposal/component.js b/app/components/add-proposal/component.js index 06605f1..ec59433 100644 --- a/app/components/add-proposal/component.js +++ b/app/components/add-proposal/component.js @@ -41,6 +41,7 @@ export default Component.extend({ save() { if (! this.get('isValid')) { alert('Invalid data. Please review and try again.'); + return false; } this.set('inProgress', true); let proposal = this.get('proposal');