fix: Can't switch env type

This commit is contained in:
MystiPanda 2023-12-11 10:51:59 +08:00
parent 01a9cda99a
commit 4a5aa1bcc1

View File

@ -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 })}