We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 04d759c + a2b15ad commit b4ece61Copy full SHA for b4ece61
src/time.tsx
@@ -187,7 +187,8 @@ export default class Time extends Component<TimeProps, TimeState> {
187
188
renderTimes = (): JSX.Element[] => {
189
let times: Date[] = [];
190
- const format = this.props.format ? this.props.format : "p";
+ const format =
191
+ typeof this.props.format === "string" ? this.props.format : "p";
192
const intervals = this.props.intervals ?? Time.defaultProps.intervals;
193
194
const activeDate =
0 commit comments