set unsubscribe inner text after subscribe

This commit is contained in:
Simon 2023-08-26 17:38:39 +07:00
parent 7c47c980f3
commit ef89daf1a1
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -433,7 +433,7 @@ function buttonSuccess(button) {
if (buttonSpan.innerHTML === 'Subscribe') {
buttonSpan.innerHTML = 'Success';
setTimeout(() => {
buttonSpan.innerHTML = 'Subscribe';
buttonSpan.innerHTML = 'Unsubscribe';
}, 2000);
} else {
buttonSpan.innerHTML = checkmarkIcon;