Skip to content

Commit 04f27ff

Browse files
committed
fix: move compsable call at the top of the function
1 parent 56be939 commit 04f27ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/composables/useCharts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,6 @@ export function getNpmPackageCreationDate(packument: PackumentLikeForTime): stri
411411
}
412412

413413
export function useCharts() {
414-
const { t } = useI18n()
415414
const compactNumberFormatter = useCompactNumberFormatter()
416415

417416
function resolveDateRange(
@@ -628,6 +627,7 @@ export function useCharts() {
628627
dataset,
629628
config,
630629
}: AltCopyArgs<TrendLineDataset, TrendLineConfig>): string {
630+
const { t } = useI18n()
631631
if (!dataset) return ''
632632

633633
const analysis = dataset.lines.map(({ name, series }) => ({

0 commit comments

Comments
 (0)