Skip to content

Commit

Permalink
lint fixes, version update
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasnteireho committed Mar 22, 2024
1 parent a9e23f8 commit 093ff97
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion index.dev.html
Expand Up @@ -59,6 +59,6 @@
errRepURL: ''
}));
</script>
<script src="node_modules/steal/steal.production.js?v=1708045473865" cache-key="v" cache-version="1708045473865" main="@caliorg/a2jviewer/app"></script>
<script src="node_modules/steal/steal.production.js?v=1708983367123" cache-key="v" cache-version="1708983367123" main="@caliorg/a2jviewer/app"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -59,6 +59,6 @@
errRepURL: ''
}));
</script>
<script src="node_modules/steal/steal.production.js?v=1708983367123" cache-key="v" cache-version="1708983367123" main="@caliorg/a2jviewer/app"></script>
<script src="node_modules/steal/steal.production.js?v=1711140604745" cache-key="v" cache-version="1711140604745" main="@caliorg/a2jviewer/app"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@caliorg/a2jviewer",
"version": "8.2.0-10",
"version": "8.3.0-0",
"description": "A2J Viewer standalone and preview app.",
"main": "a2jviewer/app",
"scripts": {
Expand Down
15 changes: 6 additions & 9 deletions src/mobile/pages/fields/field/field.js
Expand Up @@ -308,9 +308,8 @@ export const FieldVM = DefineMap.extend('FieldVM', {
} else if (field.type === 'useravatar') { // TODO: validate the JSON string here?
value = JSON.stringify(this.userAvatar.serialize())
} else if (field.type === 'datemdy') {

if ($el.val().length < 6){
value = ""
if ($el.val().length < 6) {
value = ''
}
// format date to (mm/dd/yyyy) from acceptable inputs
value = this.normalizeDateInput($el.val())
Expand All @@ -322,9 +321,7 @@ export const FieldVM = DefineMap.extend('FieldVM', {
// support older released guides without adding
// more complex code

if (value.length)
{

if (value.length) {
if (field.hasOwnProperty('max')) {
let maxDate =
field.max.substr(0, 2) + '/' +
Expand Down Expand Up @@ -356,9 +353,9 @@ export const FieldVM = DefineMap.extend('FieldVM', {
}

if (((field.type === 'datemdy') && (value.length >= 6)) ||
(field.type !== 'datemdy') ){
_answerVm.values = value
}
(field.type !== 'datemdy')) {
_answerVm.values = value
}

let errors = _answerVm.errors
field.hasError = errors
Expand Down

0 comments on commit 093ff97

Please sign in to comment.