fix: replace undefined formatByteSize with formatBytes

JsonConvertSection.tsx and JsonFormatSection.tsx were calling
formatByteSize which doesn't exist. The correct function name
imported from @/utils/format is formatBytes.
This commit is contained in:
Ubuntu
2026-05-30 12:40:56 +08:00
parent f9821553b3
commit 187fb1a773
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>
+1 -1
View File
@@ -134,7 +134,7 @@ export default function JsonFormatSection() {
<span>
{t('jsonFormat:formattedSize')}:{' '}
<span className="font-semibold text-foreground/80">
{formatByteSize(result.formattedBytes)}
{formatBytes(result.formattedBytes)}
</span>
</span>
</div>