Compare commits

...

1 Commits

Author SHA1 Message Date
Ubuntu 187fb1a773 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.
2026-05-30 12:40:56 +08:00
3 changed files with 55 additions and 145 deletions
+53 -143
View File
File diff suppressed because it is too large Load Diff
+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>