I have a Moment component with two props: duration and date.
<Moment duration={props.createdAt} date={props.dueDate} />
props.createdAt and props.dueDate are from MongoDB and they are of type Date.
For example, it outputs 0 weeks, 5 days, 0 hours but it also outputs 3 days sometimes without 0s. How can I get rid of 0s? Shouldn't it get rid of 0s by default?
I have read the GitHub page but I couldn't find anything.