Skip to content

Commit 190a00e

Browse files
authored
Fix ingredient selection (#324)
* chore: bump version * fix: ingredient amount is 0 initially * chore: remove aab building
1 parent 94c79df commit 190a00e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ jobs:
3333
DEFAULT_API_URL: https://beta.cookpal.io
3434
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
3535

36-
- name: Build android aab
37-
run: docker run -e EXPO_TOKEN=$EXPO_TOKEN -e DEFAULT_API_URL=$DEFAULT_API_URL -v "$(pwd)":/builder ghcr.io/steve192/easbuilder:latest production app-build.aab
38-
env:
39-
DEFAULT_API_URL: https://beta.cookpal.io
40-
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
36+
# - name: Build android aab
37+
# run: docker run -e EXPO_TOKEN=$EXPO_TOKEN -e DEFAULT_API_URL=$DEFAULT_API_URL -v "$(pwd)":/builder ghcr.io/steve192/easbuilder:latest production app-build.aab
38+
# env:
39+
# DEFAULT_API_URL: https://beta.cookpal.io
40+
# EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
4141

4242
- name: Release
4343
env:

app.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "CookPal",
44
"slug": "opencookbook",
55
"scheme": "cookpal",
6-
"version": "1.1.3",
6+
"version": "1.1.10",
77
"orientation": "portrait",
88
"icon": "./assets/icon.png",
99
"androidStatusBar": {
@@ -59,7 +59,7 @@
5959
"READ_EXTERNAL_STORAGE",
6060
"WRITE_EXTERNAL_STORAGE"
6161
],
62-
"versionCode": 21
62+
"versionCode": 22
6363
},
6464
"web": {
6565
"favicon": "./assets/icon.png"

src/screens/wizard/RecipeWizardScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const RecipeWizardScreen = (props: Props) => {
2929
existingRecipe ??
3030
{
3131
title: '',
32-
neededIngredients: [{ingredient: {name: ''}, amount: 0, unit: ''}],
32+
neededIngredients: [{ingredient: {name: ''}, amount: null, unit: ''}],
3333
preparationSteps: [''],
3434
images: [],
3535
servings: 1,
@@ -96,7 +96,7 @@ const RecipeWizardScreen = (props: Props) => {
9696
ingredientsCopy.push({
9797
ingredient: {id: undefined, name: ''},
9898
unit: '',
99-
amount: 0,
99+
amount: null,
100100
});
101101
setRecipeData({...recipeData, neededIngredients: ingredientsCopy});
102102
};

0 commit comments

Comments
 (0)