From 069c8a6143198f9a8cb82c9770d31ef93113c4c5 Mon Sep 17 00:00:00 2001 From: Maddie <52103563+maddie480@users.noreply.github.com> Date: Mon, 15 Jul 2024 08:13:03 +0200 Subject: [PATCH] Fix pnpm run test https://github.com/frenic/csstype#what-should-i-do-when-i-get-type-errors tells me this is a way to do this, so I'm not getting my developer license revoked just yet, hopefully? --- src/plugins/_api/badges/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/_api/badges/index.tsx b/src/plugins/_api/badges/index.tsx index 54d5a30f1..a7b38c65b 100644 --- a/src/plugins/_api/badges/index.tsx +++ b/src/plugins/_api/badges/index.tsx @@ -163,7 +163,7 @@ export default definePlugin({ style: { borderRadius: "50%", transform: "scale(0.9)", // The image is a bit too big compared to default badges - objectFit: "contain" // Do not crop non-square images + ["objectFit" as any]: "contain" // Do not crop non-square images } }, onClick() {