From 1c280255ad16a00b52a8afe7d746c8643b207bcf Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Sat, 31 Dec 2022 22:30:48 +0800 Subject: [PATCH] fix: add repeat api key name tip --- src/routes/setting/BotConfig/CreateAPIKeyModal.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/setting/BotConfig/CreateAPIKeyModal.tsx b/src/routes/setting/BotConfig/CreateAPIKeyModal.tsx index 31cf9c5a..bd915be7 100644 --- a/src/routes/setting/BotConfig/CreateAPIKeyModal.tsx +++ b/src/routes/setting/BotConfig/CreateAPIKeyModal.tsx @@ -37,7 +37,9 @@ const CreateAPIKeyModal = ({ closeModal, uid }: Props) => { case 406: toast.error("Invalid Webhook URL!"); break; - + case 409: + toast.error("Name Already Exists!"); + break; default: break; }