Skip to content

Commit

Permalink
docs(sliderpage): minor fix to the way error messages are handled
Browse files Browse the repository at this point in the history
  • Loading branch information
yousifalraheem committed Nov 10, 2019
1 parent 7358d86 commit f0ae01e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion develop/components/pages/SliderPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class SliderExamples extends React.Component<SliderPageProps, SliderPageState> {
sliderLabels = hasLabels ? this.generateLabels(min, max) : [];
sliderLabels && (newState.sliderLabels = sliderLabels);
}
if (name === SliderPageStateNames.slider && type === "number") {
if (name === SliderPageStateNames.slider) {
if (newState[name] < min) {
newState.withInputError = "Cannot be less the minimum";
} else if (newState[name] > max) {
Expand Down

0 comments on commit f0ae01e

Please sign in to comment.