Clear wizard interceptor on wizard start and close

Without doing this, an interceptor from a different wizard can run
when a new wizard is opened causing incorrect validation.
This commit is contained in:
Steven Nguyen
2023-07-26 15:40:01 -07:00
parent 7fcf322dd8
commit ac757e3989
+2
View File
@@ -24,6 +24,7 @@ function createWizardStore() {
update((n) => {
n.show = true;
n.component = component;
n.interceptor = null;
n.media = media;
trackEvent('wizard_start');
return n;
@@ -39,6 +40,7 @@ function createWizardStore() {
update((n) => {
n.show = false;
n.component = null;
n.interceptor = null;
n.media = null;
return n;