ordering-ui-react-native 0.17.9-release → 0.17.10-release

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.17.9-release",
3
+ "version": "0.17.10-release",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -618,7 +618,9 @@ export const OrderContentComponent = (props: OrderContent) => {
618
618
  )}
619
619
  </View>
620
620
  <OText>
621
- -{parsePrice(event.amount, { currency: order?.currency })}
621
+ {(event?.paymethod?.gateway === 'cash' && order?.cash)
622
+ ? parsePrice(order?.cash, { currency: order?.currency })
623
+ : `-${parsePrice(event?.amount, { currency: order?.currency })}`}
622
624
  </OText>
623
625
  </View>
624
626
  ))}