@campxdev/shared 1.8.2 → 1.8.4

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.2",
3
+ "version": "1.8.4",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -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
 
@@ -169,9 +169,9 @@ export default function Table({
169
169
  <>
170
170
  {pagination && (
171
171
  <TableFooter
172
- page={pagination.page}
172
+ page={pagination.page + 1}
173
173
  limit={pagination.limit}
174
- totalCount={pagination.totalCount}
174
+ totalCount={pagination.totalCount ?? 0}
175
175
  handlePagination={pagination.onChange}
176
176
  handlePageLimit={pagination.onChangeLimit}
177
177
  />