From b4c0c4e5c65762e9f42ad86574996528114febee Mon Sep 17 00:00:00 2001 From: naskya Date: Fri, 20 Oct 2023 07:20:16 +0000 Subject: [PATCH] fix: 0 is falsy --- packages/client/src/components/mfm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/mfm.ts b/packages/client/src/components/mfm.ts index cfdbd8a23..65ffa4210 100644 --- a/packages/client/src/components/mfm.ts +++ b/packages/client/src/components/mfm.ts @@ -264,7 +264,7 @@ export default defineComponent({ : token.props.args.y ? "perspective(128px) rotateY" : "rotate"; - const degrees = parseInt(token.props.args.deg) || "90"; + const degrees = parseFloat(token.props.args.deg) ?? "90"; style = `transform: ${rotate}(${degrees}deg); transform-origin: center center;`; break; }