diff --git a/package-lock.json b/package-lock.json index 12bd30c0..94f108e4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "@react-native-clipboard/clipboard": "1.16.1", "@react-native-community/checkbox": "0.5.17", "@react-native-community/slider": "4.5.5", - "@react-native-picker/picker": "2.11.0", + "@react-native-picker/picker": "2.11.1", "@react-native/assets-registry": "0.77.1", "@react-spring/native": "9.7.5", "@react-spring/web": "9.7.5", @@ -6136,8 +6136,9 @@ "license": "MIT" }, "node_modules/@react-native-picker/picker": { - "version": "2.11.0", - "license": "MIT", + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@react-native-picker/picker/-/picker-2.11.1.tgz", + "integrity": "sha512-ThklnkK4fV3yynnIIRBkxxjxR4IFbdMNJVF6tlLdOJ/zEFUEFUEdXY0KmH0iYzMwY8W4/InWsLiA7AkpAbnexA==", "workspaces": [ "example" ], diff --git a/package.json b/package.json index 4504e29f..603e7519 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "@react-native-clipboard/clipboard": "1.16.1", "@react-native-community/checkbox": "0.5.17", "@react-native-community/slider": "4.5.5", - "@react-native-picker/picker": "2.11.0", + "@react-native-picker/picker": "2.11.1", "@react-native/assets-registry": "0.77.1", "@react-spring/native": "9.7.5", "@react-spring/web": "9.7.5", diff --git a/src/components/Picker/Picker.tsx b/src/components/Picker/Picker.tsx index 41e16d51..1e8b6801 100644 --- a/src/components/Picker/Picker.tsx +++ b/src/components/Picker/Picker.tsx @@ -49,7 +49,7 @@ export const Picker = forwardRef( {...selectProps} itemKey={tmpValue?.value || value} items={itemsWithColor} - placeholder={{}} + placeholder={{ label: "", value: null }} style={{ inputAndroid: { opacity: 0 diff --git a/src/hooks/usePostInvoice.ts b/src/hooks/usePostInvoice.ts index 9bfdab5e..389f7039 100644 --- a/src/hooks/usePostInvoice.ts +++ b/src/hooks/usePostInvoice.ts @@ -83,7 +83,8 @@ export const usePostInvoice = () => { additionnalHistoryProps = { device: { name: deviceName, - type: deviceType + type: deviceType, + appVersion: process.env.APP_VERSION }, description, expiry: checkoutResponseData.expiry diff --git a/src/screens/Signup/Signup.tsx b/src/screens/Signup/Signup.tsx index f0a830f6..d8c94440 100644 --- a/src/screens/Signup/Signup.tsx +++ b/src/screens/Signup/Signup.tsx @@ -98,6 +98,7 @@ export const Signup = () => { deviceLocale ) as AccountConfigType["currency"], btcPercent: 100, + ownerCountry: deviceLocale?.split("-")?.[1], btcAddressTypes: { onchain: false, lightning: false,