diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-11-22 15:56:52 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-11-30 17:15:25 -0600 |
commit | 85a82ed4d6ef12100a7e4df19e6b6506a92e2ee9 (patch) | |
tree | 8d4c374a5b082f727e200c6c68336bd8466d1ef6 /app/assets | |
parent | d23a888ba3cc31a1f6f69d70a090acd3625b186b (diff) | |
download | gitlab-ce-85a82ed4d6ef12100a7e4df19e6b6506a92e2ee9.tar.gz |
use less error-prone lowercase comparison for isSubscribed
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/subscription.js.es6 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/subscription.js.es6 b/app/assets/javascripts/subscription.js.es6 index f043e3e6850..ae596916c9d 100644 --- a/app/assets/javascripts/subscription.js.es6 +++ b/app/assets/javascripts/subscription.js.es6 @@ -24,7 +24,7 @@ } button.classList.add('disabled'); - const isSubscribed = buttonSpan.innerHTML.trim() !== 'Subscribe'; + const isSubscribed = buttonSpan.innerHTML.trim().toLowerCase() !== 'subscribe'; const toggleActionUrl = this.containerElm.getAttribute('data-url'); $.post(toggleActionUrl, () => { |