Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

sponsorship: Fix `#organization-type` not found.

Aman Agrawal1b47134d0d56
diff --git a/web/src/billing/sponsorship.ts b/web/src/billing/sponsorship.ts
index 101afe5db12..8dcfeb9fe6a 100644
--- a/web/src/billing/sponsorship.ts
+++ b/web/src/billing/sponsorship.ts
@@ -85,6 +85,11 @@ function create_ajax_request(): void {
}
export function initialize(): void {
+ if ($(".sponsorship-status-page").length > 0) {
+ // Sponsorship form is not present on sponsorship status page.
+ return;
+ }
+
$("#sponsorship-button").on("click", (e) => {
if (!helpers.is_valid_input($("#sponsorship-form"))) {
return;