Skip to content

Commit

Permalink
Return first address if default address isn't there
Browse files Browse the repository at this point in the history
  • Loading branch information
mvaivre committed Sep 3, 2024
1 parent 694108c commit cb0829c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions apps/mobile-wallet/src/features/buy/BuyModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import ScreenTitle from '~/components/layout/ScreenTitle'
import LinkToWeb from '~/components/text/LinkToWeb'
import { useAppSelector } from '~/hooks/redux'
import { InWalletTabsParamList } from '~/navigation/InWalletNavigation'
import { selectAllDiscoveredAddresses } from '~/store/addressDiscoverySlice'
import { selectDefaultAddress } from '~/store/addressesSlice'
import { DEFAULT_MARGIN } from '~/style/globalStyle'

Expand All @@ -46,7 +45,6 @@ const BuyModal = (props: BuyModalProps) => {
const webViewRef = useRef<WebView>(null)
const insets = useSafeAreaInsets()
const defaultAddress = useAppSelector(selectDefaultAddress)
const allAddresses = useAppSelector(selectAllDiscoveredAddresses)
const [isDisclaimerAccepted, setIsDisclaimerAccepted] = useState(false)

useEffect(() => {
Expand Down

0 comments on commit cb0829c

Please sign in to comment.