From 34aa38be8b3ecf7ae67cd8b36aa0e0142e15114a Mon Sep 17 00:00:00 2001 From: Nitin Kumar <46647141+snitin315@users.noreply.github.com> Date: Fri, 14 Feb 2020 21:46:09 +0530 Subject: [PATCH] fix: make event delete & transfer confirmation modal case sensitive (#4085) --- app/components/modals/event-delete-modal.js | 2 +- app/components/modals/event-transfer-modal.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/modals/event-delete-modal.js b/app/components/modals/event-delete-modal.js index ee241b3c257..e94f8a4505f 100644 --- a/app/components/modals/event-delete-modal.js +++ b/app/components/modals/event-delete-modal.js @@ -5,6 +5,6 @@ export default ModalBase.extend({ isSmall : true, confirmName : '', isNameDifferent : computed('confirmName', function() { - return this.eventName ? this.confirmName.toLowerCase() !== this.eventName.toLowerCase() : true; + return this.eventName ? this.confirmName !== this.eventName : true; }) }); diff --git a/app/components/modals/event-transfer-modal.js b/app/components/modals/event-transfer-modal.js index 8985f2eab22..ec02a9327b4 100644 --- a/app/components/modals/event-transfer-modal.js +++ b/app/components/modals/event-transfer-modal.js @@ -5,6 +5,6 @@ export default ModalBase.extend({ isSmall : true, confirmEventName : '', isNameDifferent : computed('confirmEventName', 'eventName', function() { - return this.eventName ? this.confirmEventName.toLowerCase() !== this.eventName.toLowerCase() : true; + return this.eventName ? this.confirmEventName !== this.eventName : true; }) });