From dddee25760f3068709444197652393bbe5080415 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?L=C3=A9on=20Avic=20Simmons?=
- For the component roadmap, status, and ideas, please the{' '} + For the component roadmap, status, and ideas, please see the{' '} GitHub project board
diff --git a/src/components/Input/TimeInput.js b/src/components/Input/TimeInput.js index 0c9d6bb13..d4075e299 100644 --- a/src/components/Input/TimeInput.js +++ b/src/components/Input/TimeInput.js @@ -173,18 +173,18 @@ export default class TimeInput extends React.Component { return false; } - // only show times on step if we havent started to type minutes + // only show times on step if we haven't started to type minutes if (!hasTypedTens && !onInterval(time, step)) { return false; } - // only show times on step or on 10 min intervals if we havent finished typing minutes + // only show times on step or on 10 min intervals if we haven't finished typing minutes if (!hasTypedMin && !onInterval(time, step) && !onInterval(time, 10)) { return false; } const labelCandidate = flow( - // Remove colon from option if input doesnt have one + // Remove colon from option if input doesn't have one (str) => (inputCandidate.includes(':') ? str : str.replace(/:/gi, '')), removeWhitespace, removeLeadingZeros,