Skip to content

Commit

Permalink
fix: error colour precedence in message wrapper (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
JBR90 authored and simonrose121 committed Sep 16, 2024
1 parent 5094c47 commit 18bfccc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ function MessageWrapper({
<div
className={cn(
"relative mt-14 w-full items-start rounded-md",
type === "user" && "bg-teachersLilac p-9",
errorType && ERROR_TYPE_COLOR_MAP[errorType],
errorType && "p-9",
className,
type === "user" && "bg-teachersLilac p-9",
)}
>
{type === "aila" ||
Expand Down

0 comments on commit 18bfccc

Please sign in to comment.