diff --git a/packages/skia/src/skia/web/JsiSkParagraphStyle.ts b/packages/skia/src/skia/web/JsiSkParagraphStyle.ts index f4483f3992..274e3a2752 100644 --- a/packages/skia/src/skia/web/JsiSkParagraphStyle.ts +++ b/packages/skia/src/skia/web/JsiSkParagraphStyle.ts @@ -19,9 +19,7 @@ export class JsiSkParagraphStyle { ps.replaceTabCharacters = value.replaceTabCharacters ?? ps.replaceTabCharacters; ps.textAlign = - value.textAlign !== undefined - ? { value: value.textAlign } - : undefined ?? ps.textAlign; + value.textAlign !== undefined ? { value: value.textAlign } : ps.textAlign; ps.textDirection = value.textDirection !== undefined ? { value: value.textDirection === TextDirection.LTR ? 1 : 0 }