Skip to content

Commit

Permalink
add error message for wrong type of indicatorValue
Browse files Browse the repository at this point in the history
  • Loading branch information
matbind committed Mar 7, 2020
1 parent 3eea25a commit d16d85c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/VueSliderWithIndicator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default {
data () {
return {
settings: {
init: 20,
init: 50,
max: 100,
min: 0,
step: 1,
Expand Down Expand Up @@ -106,7 +106,10 @@ export default {
mounted () {
if (isNaN(this.sliderValue)) {
console.error(`Expected Number for 'sliderValue', instead got ${this.sliderValue}`)
console.error(`Expected Number for 'sliderValue', instead got ${this.sliderValue}.`)
}
if (isNaN(this.indicatorValue)) {
console.error(`Expected Number for 'indicatorValue', instead got ${this.indicatorValue}.`)
}
if (this.options) {
Expand Down

0 comments on commit d16d85c

Please sign in to comment.