Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
fix: default no vendor selected
Browse files Browse the repository at this point in the history
  • Loading branch information
shottah committed Jun 7, 2022
1 parent b8287ab commit ad07749
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* eslint-disable no-console */
/* eslint-disable @typescript-eslint/no-floating-promises */
/* eslint-disable no-undef */
// Order is important, please don't change it unless you know what you're doing :D
import 'node-libs-react-native/globals'
import 'src/missingGlobals'
Expand All @@ -13,7 +16,7 @@ import Config from 'react-native-config'
import { stringToBoolean } from '@celo/utils/lib/parsing'
import App from 'src/app/App'
import * as Sentry from '@sentry/react-native'
import codePush from 'react-native-code-push'
import CodePush from 'react-native-code-push'
import 'react-native-gesture-handler'
import { Text, TextInput } from 'react-native'

Expand Down Expand Up @@ -45,5 +48,5 @@ TextInput.defaultProps = {
adjustsFontSizeToFit: true,
}

const CPOptions = { updateDialog: true, installMode: codePush.InstallMode.ON_NEXT_RESTART }
const CPOptions = { updateDialog: true, installMode: CodePush.InstallMode.ON_NEXT_RESTART }
AppRegistry.registerComponent('celo', () => CodePush(CPOptions)(App))
2 changes: 1 addition & 1 deletion src/vendors/VendorsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function VendorsScreen() {
return vendor
})

const [currentVendor, setCurrentVendor] = useState<Vendor | null>(sections[0])
const [currentVendor, setCurrentVendor] = useState<Vendor | null>(null)

const renderItem = ({ item, index }: any) => (
<VendorListItem vendor={item} key={index} onPress={() => setCurrentVendor(item)} />
Expand Down

0 comments on commit ad07749

Please sign in to comment.