From ebc0f706e31c99d437dfb741690a643d3b5a472a Mon Sep 17 00:00:00 2001 From: merefield Date: Fri, 8 Sep 2023 07:18:31 +0100 Subject: [PATCH] remove redundant assignment --- .../discourse/initializers/custom-wizard-redirect.js.es6 | 1 - 1 file changed, 1 deletion(-) diff --git a/assets/javascripts/discourse/initializers/custom-wizard-redirect.js.es6 b/assets/javascripts/discourse/initializers/custom-wizard-redirect.js.es6 index 391340b7..c02f0f3d 100644 --- a/assets/javascripts/discourse/initializers/custom-wizard-redirect.js.es6 +++ b/assets/javascripts/discourse/initializers/custom-wizard-redirect.js.es6 @@ -22,7 +22,6 @@ export default { withPluginApi("0.8.36", (api) => { api.onAppEvent("page:changed", (data) => { const currentUser = api.getCurrentUser(); - const searchParams = new URLSearchParams(window.location.search); if (currentUser) { const redirectToWizard = currentUser.redirect_to_wizard;