Commit 85a82ed4 authored by Mike Greiling's avatar Mike Greiling

use less error-prone lowercase comparison for isSubscribed

parent d23a888b
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
} }
button.classList.add('disabled'); button.classList.add('disabled');
const isSubscribed = buttonSpan.innerHTML.trim() !== 'Subscribe'; const isSubscribed = buttonSpan.innerHTML.trim().toLowerCase() !== 'subscribe';
const toggleActionUrl = this.containerElm.getAttribute('data-url'); const toggleActionUrl = this.containerElm.getAttribute('data-url');
$.post(toggleActionUrl, () => { $.post(toggleActionUrl, () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment