Fix linting errors
This commit is contained in:
parent
a301fd7228
commit
79f5362d03
@ -20,7 +20,7 @@ function formatTimeLeft(inputSeconds) {
|
||||
const minutes = Math.floor(seconds / 60);
|
||||
const remainingSeconds = seconds % 60;
|
||||
|
||||
let result = '';
|
||||
let result = "";
|
||||
if (years > 0) result = `over ${years}y`;
|
||||
else if (days > 0) result = `over ${days}d`;
|
||||
else if (hours > 0) result = `${hours}h ${minutes}m`;
|
||||
@ -30,7 +30,6 @@ function formatTimeLeft(inputSeconds) {
|
||||
return result.trim();
|
||||
}
|
||||
|
||||
|
||||
export default function Component({ service }) {
|
||||
const { t } = useTranslation();
|
||||
const { widget } = service;
|
||||
@ -83,7 +82,7 @@ export default function Component({ service }) {
|
||||
{enableLeechProgress &&
|
||||
leechTorrents.map((queueEntry) => (
|
||||
<QueueEntry
|
||||
progress={(queueEntry.progress) * 100}
|
||||
progress={queueEntry.progress * 100}
|
||||
timeLeft={formatTimeLeft(queueEntry.eta)}
|
||||
title={queueEntry.name}
|
||||
activity={queueEntry.state}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user