@campxdev/shared 1.0.4 → 1.0.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.0.4",
3
+ "version": "1.0.5",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -72,6 +72,8 @@ export const StyledContactCard = styled(Card)(() => ({
72
72
  export const StyledDialogCard = styled(Card)(() => ({
73
73
  padding: '20px',
74
74
  boxShadow: '0px 5px 10px #0000001A',
75
+ width: '350px',
76
+ margin: 'auto',
75
77
  maxHeight: '550px',
76
78
  overflowY: 'auto',
77
79
  '&::-webkit-scrollbar': {
@@ -48,7 +48,7 @@ export function LoginForm() {
48
48
  } catch (err) {
49
49
  // eslint-disable-next-line no-console
50
50
  console.log(err)
51
- setError(err.response.data.message ?? 'Server Error')
51
+ setError(err?.response?.data?.message ?? 'Server Error')
52
52
  }
53
53
  }
54
54