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.

billing: Don't allow negative input.

Aman Agrawal542958289278
diff --git a/web/src/billing/billing.ts b/web/src/billing/billing.ts
index 00e0be34e35..c79023cee86 100644
--- a/web/src/billing/billing.ts
+++ b/web/src/billing/billing.ts
@@ -204,7 +204,7 @@ export function initialize(): void {
const {new_next_manual_license_count, old_next_manual_license_count} =
get_old_and_new_license_count_for_next_cycle();
if (
- !new_next_manual_license_count ||
+ !new_next_manual_license_count || new_next_manual_license_count < 0 ||
new_next_manual_license_count === old_next_manual_license_count
) {
$("#next-manual-license-count-update-button").prop("disabled", true);