diff --git a/web/account/log-in-form.react.js b/web/account/log-in-form.react.js index 7347aa058..50c1723c6 100644 --- a/web/account/log-in-form.react.js +++ b/web/account/log-in-form.react.js @@ -1,61 +1,48 @@ // @flow import { useConnectModal } from '@rainbow-me/rainbowkit'; import * as React from 'react'; import { useSigner } from 'wagmi'; -import { isDev } from 'lib/utils/dev-utils'; - import OrBreak from '../components/or-break.react.js'; import css from './log-in-form.css'; import SIWEButton from './siwe-button.react.js'; import SIWELoginForm from './siwe-login-form.react.js'; import TraditionalLoginForm from './traditional-login-form.react.js'; function LoginForm(): React.Node { const { openConnectModal } = useConnectModal(); const { data: signer } = useSigner(); const [ siweAuthFlowSelected, setSIWEAuthFlowSelected, ] = React.useState(false); const onSIWEButtonClick = React.useCallback(() => { setSIWEAuthFlowSelected(true); openConnectModal && openConnectModal(); }, [openConnectModal]); const cancelSIWEAuthFlow = React.useCallback(() => { setSIWEAuthFlowSelected(false); }, []); - let siweLoginForm, siweButton; - if (isDev && siweAuthFlowSelected && signer) { - siweLoginForm = ; - } else if (isDev) { - siweButton = ; - } - - if (siweLoginForm) { - return
{siweLoginForm}
; - } - - if (siweButton) { + if (siweAuthFlowSelected && signer) { return (
- - - {siweButton} +
); } return (
+ +
); } export default LoginForm;