ordering-ui-react-native 0.22.5 → 0.22.6

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.22.05",
3
+ "version": "0.22.06",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -77,6 +77,8 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
77
77
  const [printerSettings, setPrinterSettings] = useState('')
78
78
  const [autoPrintEnabled, setAutoPrintEnabled] = useState<boolean>(false)
79
79
 
80
+ const orderToComplete = [4,20,21]
81
+
80
82
  if (order?.status === 7 || order?.status === 4) {
81
83
  if (drivers?.length > 0 && drivers) {
82
84
  drivers.forEach((driver: any) => {
@@ -667,7 +669,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
667
669
  disabled={loading}
668
670
  />
669
671
  )}
670
- {order?.status === 4 && ![1].includes(order?.delivery_type) && (
672
+ {orderToComplete.includes(order?.status) && ![1].includes(order?.delivery_type) && (
671
673
  <FloatingButton
672
674
  btnText={t(
673
675
  'ORDER_NOT_PICKEDUP_BY_CUSTOMER',