fix: dev account server

This commit is contained in:
Mo
2022-01-17 10:53:23 -06:00
parent 5e0769745c
commit c232a5e3c6
2 changed files with 6 additions and 11 deletions

View File

@@ -20,16 +20,6 @@ export const AdvancedOptions: FunctionComponent<Props> = observer(
appState.accountMenu;
const [showAdvanced, setShowAdvanced] = useState(false);
useEffect(() => {
if (isDev && window._devAccountServer) {
setEnableServerOption(true);
setServer(window._devAccountServer);
application.setCustomHost(window._devAccountServer);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const handleServerOptionChange = (e: Event) => {
if (e.target instanceof HTMLInputElement) {
setEnableServerOption(e.target.checked);