Skip to content

Commit

Permalink
fix double zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni Soriano Benitez authored and Toni Soriano Benitez committed Feb 3, 2019
1 parent d6fc322 commit c90aa7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });

filters: {
addZero: function addZero(value) {
value > 10 ? '0' + value : value;
value < 10 ? value = '0' + value : value;
return value;
}
},
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default {
filters: {
addZero: function (value) {
value > 10 ? '0' + value : value;
value < 10 ? value = '0' + value : value;
return value;
}
},
Expand Down

0 comments on commit c90aa7a

Please sign in to comment.