From 5bfd097ce4f67278462cd9ec0f63d819f0231a09 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Wed, 16 Aug 2023 01:28:25 +0800
Subject: ...

---
 FrontEnd/src/views/common/button/FlatButton.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'FrontEnd/src/views/common/button/FlatButton.tsx')

diff --git a/FrontEnd/src/views/common/button/FlatButton.tsx b/FrontEnd/src/views/common/button/FlatButton.tsx
index 15b21224..20ca7432 100644
--- a/FrontEnd/src/views/common/button/FlatButton.tsx
+++ b/FrontEnd/src/views/common/button/FlatButton.tsx
@@ -24,7 +24,7 @@ export default function FlatButton(props: FlatButtonProps) {
     <button
       ref={buttonRef}
       className={classNames(
-        color && `cru-${color}`,
+        `cru-button-${color ?? "primary"}`,
         "cru-flat-button",
         className,
       )}
-- 
cgit v1.2.3

