ordering-ui-react-native 0.23.33 → 0.23.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.23.33",
3
+ "version": "0.23.34",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -68,7 +68,7 @@ export const OrderItem = React.memo((props: any) => {
68
68
  ? theme.colors.danger100
69
69
  : order?.time_status === 'at_risk'
70
70
  ? theme.colors.warning100
71
- : theme.colors.primaryContrast
71
+ : '#fff'
72
72
  },
73
73
  icon: {
74
74
  borderRadius: 7.6,
@@ -188,8 +188,8 @@ const UserVerificationUI = (props: any) => {
188
188
  const setupUserPhoneNumber = () => {
189
189
  if (!user || !user?.cellphone || !user?.country_phone_code) return
190
190
  setPhoneState({
191
- cellphone: user?.cellphone,
192
- country_phone_code: user?.country_phone_code,
191
+ cellphone: user?.country_code === "PR" ? user?.cellphone.replace('787', '') : user?.cellphone,
192
+ country_phone_code: user?.country_code === "PR" ? '1787' : user?.country_phone_code,
193
193
  formatted: `+${user?.country_phone_code} ${user?.cellphone}`
194
194
  })
195
195
  }