Browse Source

fix: Set `REJECT-DROP` policy the same text color as `REJECT` (#622)

xkww3n 1 year ago
parent
commit
9b79da2cdf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/rule/rule-item.tsx

+ 1 - 1
src/components/rule/rule-item.tsx

@@ -20,7 +20,7 @@ interface Props {
 }
 
 const parseColor = (text: string) => {
-  if (text === "REJECT") return "error.main";
+  if (text === "REJECT" || text === "REJECT-DROP") return "error.main";
   if (text === "DIRECT") return "text.primary";
 
   let sum = 0;