fix: replace undefined formatByteSize with formatBytes (#57)

JsonConvertSection.tsx and JsonFormatSection.tsx were calling
formatByteSize which doesn't exist. The correct function name
imported from @/utils/format is formatBytes.

Co-authored-by: Ubuntu <ubuntu@localhost.localdomain>
This commit is contained in:
LingandRX
2026-05-30 12:55:04 +08:00
committed by GitHub
parent f9821553b3
commit 3f447708b7
3 changed files with 55 additions and 145 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ export default function JsonConvertSection({
<span>
{t('jsonFormat:formattedSize')}:{' '}
<span className="font-semibold text-foreground/80">
{formatByteSize(result.outputBytes)}
{formatBytes(result.outputBytes)}
</span>
</span>
</div>