Skip to content

Commit

Permalink
fix: enable nostr on mobile if window.nostr exists
Browse files Browse the repository at this point in the history
  • Loading branch information
steliosrammos committed Oct 9, 2024
1 parent 860447d commit 16d2da2
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/components/molecules/AuthModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@ import {
TWITTER_AUTH_ATTEMPT_MESSAGE_TIME_MILLIS,
} from '../../pages/auth/ConnectWithSocial'
import { useRefreshAuthToken } from '../../pages/auth/useAuthToken'
import {
hasFacebookAccount,
hasGithubAccount,
hasGoogleAccount,
hasNostrAccount,
hasTwitterAccount,
useMobileMode,
} from '../../utils'
import { hasFacebookAccount, hasGithubAccount, hasGoogleAccount, hasNostrAccount, hasTwitterAccount } from '../../utils'
import { Caption } from '../typography'

export type AuthModalAdditionalprops = {
Expand Down Expand Up @@ -112,7 +105,7 @@ const ConnectAccounts = ({

export const AuthModal = (authModalProps: AuthModalProps) => {
const { t } = useTranslation()
const isMobile = useMobileMode()

const {
isOpen,
onClose,
Expand Down Expand Up @@ -169,7 +162,7 @@ export const AuthModal = (authModalProps: AuthModalProps) => {

<ConnectAccounts
onClose={onClose}
showNostr={showNostr && !isMobile}
showNostr={showNostr && window.nostr}
showTwitter={showTwitter}
showLightning={showLightning}
showFacebook={showFacebook}
Expand Down

0 comments on commit 16d2da2

Please sign in to comment.