Skip to content

Commit 4e54c25

Browse files
committed
style: fix lint
1 parent 23e8246 commit 4e54c25

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

playground/src/components/canvas/CanvasStage.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ export function CanvasStage({ onReady }: CanvasStageProps) {
6969
if (disposed) return;
7070

7171
const fontPreloads = sceneSeedRef.current.flatMap((el) => {
72-
if (el.type !== 'text' || typeof el.fontFamily !== 'string' || typeof el.fontUrl !== 'string') {
72+
if (
73+
el.type !== 'text' ||
74+
typeof el.fontFamily !== 'string' ||
75+
typeof el.fontUrl !== 'string'
76+
) {
7377
return [];
7478
}
7579
if (canvas.fonts.isLoaded(el.fontFamily)) return [];

0 commit comments

Comments
 (0)