Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Escalona committed Oct 1, 2024
1 parent 5a0f609 commit 4e699ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/utils-library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ export function getSortOrder(sortBy: SortBy): SortConfig {
}

/**
* Formats the track's duration from seconds to hh:mm:ss
*/
* Formats the track's duration from seconds to hh:mm:ss
*/
export function formatDuration(seconds: number) {
return new Date(seconds * 1000).toISOString().substring(11, 19);
}
1 change: 0 additions & 1 deletion src/views/ViewTrackDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import useInvalidate from '../hooks/useInvalidate';
import type { LoaderData } from '../types/museeks';
import appStyles from './Root.module.css';
import styles from './ViewTrackDetails.module.css';
import type { LoaderData } from './router';
import { formatDuration } from '../lib/utils-library';
import Flexbox from '../elements/Flexbox/Flexbox';

Expand Down

0 comments on commit 4e699ec

Please sign in to comment.