@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "1.11.7-1.alpha.2",
3
+ "version": "1.11.7-1.alpha.3",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -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
- const navigate = useNavigate()
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 || isStaging) {
110
+ if (isDevelopment) {
113
111
  openRootModal({
114
112
  key: 'login',
115
113
  contentData: {