ordering-ui-react-native 0.22.94 → 0.22.95

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.94",
3
+ "version": "0.22.95",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -1060,7 +1060,7 @@ export const OrdersOption = (props: OrdersOptionParams) => {
1060
1060
  : storagedValue
1061
1061
 
1062
1062
  const canSaveChangesOffline = typeof configState?.configs?.allow_save_changes_offline === 'object'
1063
- ? (configState?.configs?.allow_save_changes_offline?.value ?? '')?.toString() === 'true'
1063
+ ? (configState?.configs?.allow_save_changes_offline?.value ?? '')?.toString() === '1'
1064
1064
  : saveChangesOffline
1065
1065
 
1066
1066
  offlineMethods.setState((state: any) => ({
@@ -154,7 +154,11 @@ export const OrderItem = React.memo((props: any) => {
154
154
  <Pressable
155
155
  disabled={order?.locked && isLogisticOrder}
156
156
  style={styles.cardButton}
157
- onPress={() => handlePressOrder({ ...order, logistic_order_id: _order?.id })}
157
+ onPress={() => handlePressOrder({
158
+ ...order,
159
+ logistic_order_id: _order?.id,
160
+ unsync: order?.unsync && !ordersOffUpdated?.includes(order?.id)
161
+ })}
158
162
  >
159
163
  <Card key={order.id}>
160
164
  {!!allowColumns?.slaBar && (