Skip to content

Commit

Permalink
[fix] Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhanus3133 committed Sep 7, 2024
1 parent 5c9df62 commit 8b46ca7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ function updateSubscription(subscribe) {
statusMessage.textContent = gettext('You are currently subscribed to notifications.');
toggleBtn.textContent = gettext('Unsubscribe');
toggleBtn.setAttribute('data-hasSubscribe', 'true');
confirmationMsg.textContent = 'Successfully subscribed!';
} else {
statusMessage.textContent = gettext('You are currently unsubscribed from notifications.');
toggleBtn.textContent = gettext('Subscribe');
toggleBtn.setAttribute('data-hasSubscribe', 'false');
confirmationMsg.textContent = 'Successfully unsubscribed!';
}

confirmationMsg.textContent = data.message;
confirmationMsg.style.display = 'block';
} else {
window.alert(data.message);
Expand Down

0 comments on commit 8b46ca7

Please sign in to comment.