@mxenabled/connect-widget 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -62933,8 +62933,14 @@ const useSelectInstitution = () => {
62933
62933
  map((institution) => {
62934
62934
  return selectInstitutionSuccess$1({ institution });
62935
62935
  }),
62936
- catchError((err) => of(selectInstitutionError(err)))
62937
- ).subscribe((action) => dispatch(action));
62936
+ catchError((err) => {
62937
+ setInstitutionGuid("");
62938
+ return of(selectInstitutionError(err));
62939
+ })
62940
+ ).subscribe((action) => {
62941
+ setInstitutionGuid("");
62942
+ dispatch(action);
62943
+ });
62938
62944
  return () => selectInstitution$.unsubscribe();
62939
62945
  }, [institutionGuid]);
62940
62946
  return { handleSelectInstitution };