Skip to content

Commit

Permalink
add return type on zeroPad component
Browse files Browse the repository at this point in the history
  • Loading branch information
dzonidoo committed Dec 11, 2023
1 parent abf9656 commit 1683844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/wire/components/fields/DurationLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ export function DurationLabel (props: IProps) {
return null;
}

function zeroPad(number: number) {
function zeroPad(number: number):string {
if (number.toString().length < 2) {
return `0${number}`;
} else {
return number;
return number.toString();
}
}

Expand Down

0 comments on commit 1683844

Please sign in to comment.