@sis-cc/dotstatsuite-visions 7.17.6 → 7.17.7

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.
@@ -90,7 +90,7 @@ var Contact = function Contact(_ref) {
90
90
  setDetailsError = _useState10[1];
91
91
 
92
92
  var checkEmail = function checkEmail(email) {
93
- if (getIsValidEmail(email)) {
93
+ if (getIsValidEmail(email) && R.test(/^\S+@\S+\.\S+$/, email)) {
94
94
  return setEmailError(false);
95
95
  }
96
96
  return setEmailError(true);
@@ -253,7 +253,7 @@ var Contact = function Contact(_ref) {
253
253
  control: React.createElement(Checkbox, { name: 'checkedB', color: 'primary' }),
254
254
  label: React.createElement(
255
255
  Typography,
256
- { variant: 'h6', className: classes.label },
256
+ { variant: 'h6' },
257
257
  R.prop('checkbox')(labels)
258
258
  ),
259
259
  checked: checked,
@@ -119,7 +119,7 @@ var Contact = function Contact(_ref) {
119
119
  setDetailsError = _useState10[1];
120
120
 
121
121
  var checkEmail = function checkEmail(email) {
122
- if ((0, _isemail.validate)(email)) {
122
+ if ((0, _isemail.validate)(email) && R.test(/^\S+@\S+\.\S+$/, email)) {
123
123
  return setEmailError(false);
124
124
  }
125
125
  return setEmailError(true);
@@ -282,7 +282,7 @@ var Contact = function Contact(_ref) {
282
282
  control: _react2.default.createElement(_core.Checkbox, { name: 'checkedB', color: 'primary' }),
283
283
  label: _react2.default.createElement(
284
284
  _core.Typography,
285
- { variant: 'h6', className: classes.label },
285
+ { variant: 'h6' },
286
286
  R.prop('checkbox')(labels)
287
287
  ),
288
288
  checked: checked,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sis-cc/dotstatsuite-visions",
3
- "version": "7.17.6",
3
+ "version": "7.17.7",
4
4
  "description": "Library of visual components",
5
5
  "author": "OECD",
6
6
  "homepage": "https://visions-qa.siscc.org/#o",