Skip to content

Commit 85e0210

Browse files
marklawlorCopilot
andauthored
Update src/native/styles/functions/color-mix.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 48b9162 commit 85e0210

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/native/styles/functions/color-mix.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ export const colorMix: StyleFunctionResolver = (resolveValue, value) => {
4646
return `rgba(${(left.coords[0] ?? 0) * 255}, ${(left.coords[1] ?? 0) * 255}, ${(left.coords[2] ?? 0) * 255}, ${left.alpha})`;
4747
}
4848

49-
const right = parse(next as string);
49+
if (typeof next !== "string") {
50+
return;
51+
}
52+
const right = parse(next);
5053

5154
next = args.shift();
5255
if (next && typeof next === "string" && next.endsWith("%")) {

0 commit comments

Comments
 (0)