refactor: change file name

This commit is contained in:
JackEnx 2024-04-18 17:17:07 -03:00
parent 28d1aec413
commit f710dcdd49
6 changed files with 15 additions and 15 deletions

View file

@ -11,7 +11,7 @@ import {
} from "@renderer/features";
import type { GameShop, TorrentProgress } from "@types";
import { useDate } from "./use-date";
import { byteFormat } from "@renderer/utils";
import { formatBytes } from "@renderer/utils";
export function useDownload() {
const { updateLibrary } = useLibrary();
@ -113,7 +113,7 @@ export function useDownload() {
fileSize: lastPacket?.game.fileSize,
isVerifying,
gameId: lastPacket?.game.id,
downloadSpeed: `${byteFormat(lastPacket?.downloadSpeed ?? 0)}/s`,
downloadSpeed: `${formatBytes(lastPacket?.downloadSpeed ?? 0)}/s`,
isDownloading: Boolean(lastPacket),
progress: getProgress(),
numPeers: lastPacket?.numPeers,