Browse Source

fix: Can't switch env type

MystiPanda 1 year ago
parent
commit
5e7aa15232
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/setting/setting-verge.tsx

+ 1 - 1
src/components/setting/setting-verge.tsx

@@ -111,7 +111,7 @@ const SettingVerge = ({ onError }: Props) => {
 
       <SettingItem label={t("Copy Env Type")}>
         <GuardState
-          value={env_type ?? OS === "windows" ? "powershell" : "bash"}
+          value={env_type ?? (OS === "windows" ? "powershell" : "bash")}
           onCatch={onError}
           onFormat={(e: any) => e.target.value}
           onChange={(e) => onChangeData({ env_type: e })}