@campxdev/shared 1.8.3 → 1.8.5

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.8.3",
3
+ "version": "1.8.5",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -26,7 +26,7 @@ function FloatingContainer({
26
26
  }) {
27
27
  return (
28
28
  <>
29
- <StyledFooter show={show ? show : true}>{children}</StyledFooter>
29
+ <StyledFooter show={show}>{children}</StyledFooter>
30
30
  </>
31
31
  )
32
32
  }
@@ -67,8 +67,13 @@ export function LoginForm({
67
67
  setError(null)
68
68
  })
69
69
  } catch (err) {
70
- setError(err.response.data.message ?? 'Server Error')
71
- setMailSent(false)
70
+ if (!forgotMail) {
71
+ setError('Email should not be empty')
72
+ setMailSent(false)
73
+ } else {
74
+ setError(err.response.data.message ?? 'Server Error')
75
+ setMailSent(false)
76
+ }
72
77
  }
73
78
  }
74
79