diff --git a/src/components/profile/profile-edit.tsx b/src/components/profile/profile-edit.tsx
index a739ebbf863585dc43b6ff0eaef5be03fad5d014..871d69ab3ce131f69b648733f7ac7324c26855b0 100644
--- a/src/components/profile/profile-edit.tsx
+++ b/src/components/profile/profile-edit.tsx
@@ -41,7 +41,7 @@ const ProfileEdit = (props: Props) => {
     try {
       const { uid } = itemData;
       const { name, desc, url } = form;
-      const option_ = showOpt ? option : undefined;
+      const option_ = itemData.type === "remote" ? option : undefined;
 
       if (itemData.type === "remote" && !url) {
         throw new Error("Remote URL should not be null");
diff --git a/src/components/profile/profile-new.tsx b/src/components/profile/profile-new.tsx
index efebd5ffde5dadd259c7567086de1339d0beecbf..a52913cfbef5087748594e22ef78a2783836ed00 100644
--- a/src/components/profile/profile-new.tsx
+++ b/src/components/profile/profile-new.tsx
@@ -54,7 +54,7 @@ const ProfileNew = (props: Props) => {
         throw new Error("The URL should not be null");
       }
 
-      const option_ = showOpt ? option : undefined;
+      const option_ = form.type === "remote" ? option : undefined;
       await createProfile({ ...form, name, option: option_ });
       setForm({ type: "remote", name: "", desc: "", url: "" });
       setOption({ user_agent: "" });