feat: expose block target duration in header

This commit is contained in:
Carlos Valente
2025-08-04 06:20:06 +02:00
committed by Carlos Valente
parent 32edf3404c
commit 9ec47eda6e
3 changed files with 36 additions and 4 deletions
+1 -2
View File
@@ -105,8 +105,7 @@ export const formatTime = (
/**
* Handles case for formatting a duration time
* @param duration
* @returns
* eg: "1h 0m 0s" or "0h 30m"
*/
export function formatDuration(duration: number, hideSeconds = true): string {
// durations should never be negative, we handle it here to flag if there is an issue in future