@campxdev/shared 1.11.7-1.alpha.2 → 1.11.7-1.alpha.3
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/package.json +1 -1
- package/src/hooks/useAuth.ts +3 -5
- package/yarn-error.log +0 -15782
package/package.json
CHANGED
package/src/hooks/useAuth.ts
CHANGED
|
@@ -77,6 +77,7 @@ const getInstitutionKey = () => {
|
|
|
77
77
|
return instituitionKey
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
+
const navigate = useNavigate()
|
|
80
81
|
|
|
81
82
|
function handleInstitutions(institutions) {
|
|
82
83
|
if (institutions?.length === 0) {
|
|
@@ -104,12 +105,9 @@ const loginErrorHandler = ({
|
|
|
104
105
|
setLoading?: any
|
|
105
106
|
err: AxiosError
|
|
106
107
|
}) => {
|
|
107
|
-
|
|
108
|
-
setLoading && setLoading(false)
|
|
109
|
-
const origin = window.location.origin
|
|
110
|
-
const isStaging = origin.split('campx')[1] === '.dev'
|
|
108
|
+
setLoading(false)
|
|
111
109
|
|
|
112
|
-
if (isDevelopment
|
|
110
|
+
if (isDevelopment) {
|
|
113
111
|
openRootModal({
|
|
114
112
|
key: 'login',
|
|
115
113
|
contentData: {
|