Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose_call_ui: Migrate to switch/case statement.
0xthedancea834eebe1442
diff --git a/web/src/compose_call_ui.ts b/web/src/compose_call_ui.tsindex fffa41a2b97..9c4f89b2dbf 100644--- a/web/src/compose_call_ui.ts+++ b/web/src/compose_call_ui.ts@@ -144,10 +144,13 @@ export function generate_and_insert_audio_or_video_call_link(parsed.success &&parsed.data.code === "INVALID_VIDEO_CALL_PROVIDER_TOKEN") {- if (oauth_call_provider === "webex") {- current_user.has_webex_token = false;- } else {- current_user.has_zoom_token = false;+ switch (oauth_call_provider) {+ case "webex":+ current_user.has_webex_token = false;+ break;+ case "zoom":+ current_user.has_zoom_token = false;+ break;}}if (