refactor: migrate all callers from unifiedFontStore to fontStore

This commit is contained in:
Ilia Mashkov
2026-04-08 10:00:30 +03:00
parent 468d2e7f8c
commit ed7d31bf5c
5 changed files with 18 additions and 18 deletions

View File

@@ -16,7 +16,7 @@
import {
type UnifiedFont,
fetchFontsByIds,
unifiedFontStore,
fontStore,
} from '$entities/Font';
import {
DEFAULT_TYPOGRAPHY_CONTROLS_DATA,
@@ -85,7 +85,7 @@ export class ComparisonStore {
}
// Check if fonts are available to set as defaults
const fonts = unifiedFontStore.fonts;
const fonts = fontStore.fonts;
if (fonts.length >= 2) {
// Only set if we really have nothing (fallback)
if (!this.#fontA) this.#fontA = fonts[0];