fix(ETA): Update incorrect max value (#1853)

This commit is contained in:
Rémi Marseault 2024-08-13 00:04:39 -05:00 committed by GitHub
parent 66d0abe414
commit 2176babd5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,7 +2,7 @@ import dayjs from '@/plugins/dayjs'
import { DurationUnitType } from 'dayjs/plugin/duration'
export function formatEta(value: number): string {
const QBIT_MAX_ETA = 864_000 // 100 days
const QBIT_MAX_ETA = 8_640_000 // 100 days
const MAX_UNITS = 2 // Will display 2 units max, from highest to lowest
if (value >= QBIT_MAX_ETA) {