From f64ab02f62d771f6775c0f32efb9924fb06d2918 Mon Sep 17 00:00:00 2001 From: Tanu Chahal Date: Sun, 8 Dec 2024 19:49:30 +0530 Subject: [PATCH] Changed the confusing dev feature flag name. --- extension-requests/local-utils.js | 4 ++-- extension-requests/script.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extension-requests/local-utils.js b/extension-requests/local-utils.js index 32015d0c..c0a6b9a5 100644 --- a/extension-requests/local-utils.js +++ b/extension-requests/local-utils.js @@ -103,8 +103,8 @@ const parseExtensionRequestParams = (uri, nextPageParamsObject) => { return nextPageParamsObject; }; -async function updateExtensionRequest({ id, body, dev }) { - const url = dev +async function updateExtensionRequest({ id, body, underDevFeatureFlag }) { + const url = underDevFeatureFlag ? `${API_BASE_URL}/extension-requests/${id}?dev=true` : `${API_BASE_URL}/extension-requests/${id}`; const res = await fetch(url, { diff --git a/extension-requests/script.js b/extension-requests/script.js index ac7cb435..4efaeb74 100644 --- a/extension-requests/script.js +++ b/extension-requests/script.js @@ -1277,7 +1277,7 @@ async function createExtensionCard(data, dev) { updateExtensionRequest({ id: data.id, body: formData, - dev: dev, + underDevFeatureFlag: dev, }) .then(() => { data.reason = formData.reason;