Skip to content

Commit

Permalink
fix(food): add optional chaining for meal variants length check
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert27 committed Jan 10, 2025
1 parent 26e2560 commit 86e8330
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 32 deletions.
Binary file modified bun.lockb
Binary file not shown.
24 changes: 12 additions & 12 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ PODS:
- EXJSONUtils (0.14.0)
- EXManifests (0.15.4):
- ExpoModulesCore
- Expo (52.0.23):
- Expo (52.0.24):
- ExpoModulesCore
- expo-dev-client (5.0.8):
- EXManifests
Expand Down Expand Up @@ -247,7 +247,7 @@ PODS:
- ExpoModulesCore
- ExpoHaptics (14.0.0):
- ExpoModulesCore
- ExpoHead (4.0.15):
- ExpoHead (4.0.16):
- ExpoModulesCore
- ExpoKeepAwake (14.0.1):
- ExpoModulesCore
Expand Down Expand Up @@ -282,7 +282,7 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- ExpoScreenOrientation (8.0.2):
- ExpoScreenOrientation (8.0.3):
- DoubleConversion
- ExpoModulesCore
- glog
Expand All @@ -306,7 +306,7 @@ PODS:
- Yoga
- ExpoSecureStore (14.0.0):
- ExpoModulesCore
- ExpoSplashScreen (0.29.18):
- ExpoSplashScreen (0.29.19):
- ExpoModulesCore
- ExpoSystemUI (4.0.6):
- ExpoModulesCore
Expand All @@ -318,11 +318,11 @@ PODS:
- hermes-engine (0.76.5):
- hermes-engine/Pre-built (= 0.76.5)
- hermes-engine/Pre-built (0.76.5)
- maplibre-react-native (10.0.0-beta.17):
- maplibre-react-native/DynamicLibrary (= 10.0.0-beta.17)
- maplibre-react-native (10.0.0-beta.18):
- maplibre-react-native/DynamicLibrary (= 10.0.0-beta.18)
- React
- React-Core
- maplibre-react-native/DynamicLibrary (10.0.0-beta.17):
- maplibre-react-native/DynamicLibrary (10.0.0-beta.18):
- React
- React-Core
- MMKV (2.0.2):
Expand Down Expand Up @@ -2543,7 +2543,7 @@ SPEC CHECKSUMS:
EXConstants: dd2fe64c6cdb1383b694c309a63028a8e9f2be6d
EXJSONUtils: 01fc7492b66c234e395dcffdd5f53439c5c29c93
EXManifests: f30a0c5d3d6cad8db9c01bab579e0aa0df5d3cb2
Expo: 37cea4167605a3a1b88fa0caf8349ae76c0d389c
Expo: c754038e8ff39caaa945f88e937314818f64228f
expo-dev-client: ec22c0535228bbf784a4fa7c40f90d3944d7724e
expo-dev-launcher: 47c6da6d00c48be318e77134335b4619a810fb40
expo-dev-menu: 9e2c8a4c01ed3d51859bd6375a14683f15e2ec30
Expand All @@ -2557,23 +2557,23 @@ SPEC CHECKSUMS:
ExpoFileSystem: 179a0661fd6d3c4e5d7e500a99a9cd8b295d9566
ExpoFont: 260fb85279912421894060d9aea453cee4ffc01c
ExpoHaptics: e636188d1d5f7ccb79f3c1bfab47aaf5a1768c73
ExpoHead: 83465614d1af3df77a0db724a24a43648e3daefa
ExpoHead: 9ea4e125f3aafd23e56f7feb4942c7b595889610
ExpoKeepAwake: 783e68647b969b210a786047c3daa7b753dcac1f
ExpoLinearGradient: 7ca3b1d1625a1ab85c129abce4a3cdc78a9500a3
ExpoLinking: a8332a219379ba80f8e612d5a5de4a3da446886e
ExpoLocalAuthentication: fb519b5d39df0cc216e43fef3cc8e2db1930a01e
ExpoLocalization: 8e37268a715b82b36fbb5e361efd5fe65a39c208
ExpoModulesCore: 85dedea186bed150a8cc19bbfab85a600ddd6faf
ExpoScreenOrientation: 96f21d7aa247b06e4efc22fd64d2da4c86a9cbf0
ExpoScreenOrientation: cc7242aa9a19682f005acd5383f3795896975f02
ExpoSecureStore: 06c3192d58ed167f619af3d53797c055f5ada785
ExpoSplashScreen: aa5c5eba706a5686b91861b53ced2996f1dd080d
ExpoSplashScreen: ef5749777f4ad078141f7d74fcb133eece17086e
ExpoSystemUI: 2d729aea8219f03af1b1996c1d14488a01fea94a
EXUpdatesInterface: 1dcebac98ac5dad4289e6ff2bd5616822e894397
FBLazyVector: 1bf99bb46c6af9a2712592e707347315f23947aa
fmt: 10c6e61f4be25dc963c36bd73fc7b1705fe975be
glog: 08b301085f15bcbb6ff8632a8ebaf239aae04e6a
hermes-engine: 06a9c6900587420b90accc394199527c64259db4
maplibre-react-native: c0a3e12dc3b53d50713c0f0729fe4ad0ade00174
maplibre-react-native: 09b9863f276c76e9e7af9d89a7bc1827e1e09594
MMKV: 3eacda84cd1c4fc95cf848d3ecb69d85ed56006c
MMKVCore: 508b4d3a8ce031f1b5c8bd235f0517fb3f4c73a9
RCT-Folly: bf5c0376ffe4dd2cf438dcf86db385df9fdce648
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@
"@gorhom/bottom-sheet": "^5.0.6",
"@howljs/calendar-kit": "^2.2.1",
"@kichiyaki/react-native-barcode-generator": "^0.6.7",
"@maplibre/maplibre-react-native": "^10.0.0-beta.17",
"@maplibre/maplibre-react-native": "^10.0.0-beta.18",
"@react-native-community/datetimepicker": "8.2.0",
"@react-native-community/netinfo": "11.4.1",
"@react-native-menu/menu": "^1.2.0",
"@react-navigation/native": "^7.0.14",
"@react-navigation/stack": "^7.1.1",
"@shopify/flash-list": "1.7.2",
"@tanstack/query-sync-storage-persister": "^5.62.16",
"@tanstack/react-query": "^5.62.16",
"@tanstack/react-query-persist-client": "^5.62.16",
"@tanstack/react-query": "^5.63.0",
"@tanstack/react-query-persist-client": "^5.63.0",
"@th3rdwave/react-navigation-bottom-sheet": "0.3.2",
"burnt": "^0.12.2",
"color": "^4.2.3",
"expo": "~52.0.23",
"expo": "~52.0.24",
"expo-alternate-app-icons": "^1.3.0",
"expo-application": "~6.0.1",
"expo-blur": "~14.0.1",
Expand All @@ -60,10 +60,10 @@
"expo-local-authentication": "~15.0.1",
"expo-localization": "~16.0.0",
"expo-navigation-bar": "~4.0.6",
"expo-router": "~4.0.15",
"expo-screen-orientation": "~8.0.2",
"expo-router": "~4.0.16",
"expo-screen-orientation": "~8.0.3",
"expo-secure-store": "~14.0.0",
"expo-splash-screen": "~0.29.18",
"expo-splash-screen": "~0.29.19",
"expo-system-ui": "~4.0.6",
"fuse.js": "^7.0.0",
"graphql": "^16.10.0",
Expand All @@ -83,7 +83,7 @@
"react-native-device-info": "^14.0.2",
"react-native-drag-drop-ios": "^0.1.1",
"react-native-drag-sort": "^2.4.4",
"react-native-edge-to-edge": "^1.2.0",
"react-native-edge-to-edge": "^1.3.1",
"react-native-gesture-handler": "~2.20.2",
"react-native-ios-context-menu": "^2.5.3",
"react-native-ios-utilities": "^4.5.3",
Expand All @@ -104,7 +104,7 @@
"sweet-sfsymbols": "0.7.2",
"swiftui-react-native": "^6.3.3",
"zeego": "^2.0.4",
"zustand": "^5.0.2"
"zustand": "^5.0.3"
},
"devDependencies": {
"@0no-co/graphqlsp": "^1.12.16",
Expand Down Expand Up @@ -152,7 +152,7 @@
"lint-staged": "^15.3.0",
"prettier": "3.4.2",
"prop-types": "^15.8.1",
"typescript": "^5.7.2"
"typescript": "^5.7.3"
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx,json,yml,md}": [
Expand Down
2 changes: 1 addition & 1 deletion src/components/Food/MealEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export const MealEntry = ({
i18n.language as LanguageKey
)}
</Text>
{meal.variants.length > 0 && (
{meal.variants?.length > 0 && (
<LinearGradient
style={styles.variantContainer}
colors={[
Expand Down
18 changes: 9 additions & 9 deletions src/data/licenses.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"licenseUrl": "https://github.com/Kichiyaki/react-native-barcode-generator/raw/master/LICENSE",
"parents": "neuland"
},
"@maplibre/[email protected].17": {
"@maplibre/[email protected].18": {
"licenses": "MIT",
"repository": "https://github.com/maplibre/maplibre-react-native",
"licenseUrl": "https://github.com/maplibre/maplibre-react-native/raw/master/LICENSE.md",
Expand Down Expand Up @@ -95,13 +95,13 @@
"licenseUrl": "https://github.com/TanStack/query/raw/master/LICENSE",
"parents": "neuland"
},
"@tanstack/react-query-persist-client@5.62.16": {
"@tanstack/react-query-persist-client@5.63.0": {
"licenses": "MIT",
"repository": "https://github.com/TanStack/query",
"licenseUrl": "https://github.com/TanStack/query/raw/master/LICENSE",
"parents": "neuland"
},
"@tanstack/react-query@5.62.16": {
"@tanstack/react-query@5.63.0": {
"licenses": "MIT",
"repository": "https://github.com/TanStack/query",
"licenseUrl": "https://github.com/TanStack/query/raw/master/LICENSE",
Expand Down Expand Up @@ -203,13 +203,13 @@
"licenseUrl": "https://github.com/expo/expo",
"parents": "neuland"
},
"[email protected].15": {
"[email protected].16": {
"licenses": "MIT",
"repository": "https://github.com/expo/expo",
"licenseUrl": "https://github.com/expo/expo",
"parents": "neuland"
},
"[email protected].2": {
"[email protected].3": {
"licenses": "MIT",
"repository": "https://github.com/expo/expo",
"licenseUrl": "https://github.com/expo/expo",
Expand All @@ -221,7 +221,7 @@
"licenseUrl": "https://github.com/expo/expo",
"parents": "neuland"
},
"[email protected].18": {
"[email protected].19": {
"licenses": "MIT",
"repository": "https://github.com/expo/expo",
"licenseUrl": "https://github.com/expo/expo",
Expand All @@ -233,7 +233,7 @@
"licenseUrl": "https://github.com/expo/expo",
"parents": "neuland"
},
"[email protected].23": {
"[email protected].24": {
"licenses": "MIT",
"repository": "https://github.com/expo/expo",
"licenseUrl": "https://github.com/expo/expo",
Expand Down Expand Up @@ -335,7 +335,7 @@
"licenseUrl": "https://github.com/mochixuan/react-native-drag-sort",
"parents": "neuland"
},
"react-native-edge-to-edge@1.2.0": {
"react-native-edge-to-edge@1.3.1": {
"licenses": "MIT",
"repository": "https://github.com/zoontek/react-native-edge-to-edge",
"licenseUrl": "https://github.com/zoontek/react-native-edge-to-edge/raw/master/LICENSE",
Expand Down Expand Up @@ -473,7 +473,7 @@
"licenseUrl": "https://github.com/nandorojo/zeego/raw/master/LICENSE",
"parents": "neuland"
},
"[email protected].2": {
"[email protected].3": {
"licenses": "MIT",
"repository": "https://github.com/pmndrs/zustand",
"licenseUrl": "https://github.com/pmndrs/zustand/raw/master/LICENSE",
Expand Down

0 comments on commit 86e8330

Please sign in to comment.