@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 +8 -2
- package/dist/index.es.js.map +1 -1
- package/dist/lastBuild.txt +1 -1
- package/package.json +1 -1
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) =>
|
|
62937
|
-
|
|
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 };
|