ordering-ui-react-native 0.14.89 → 0.14.90

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.14.89",
3
+ "version": "0.14.90",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -329,7 +329,7 @@ const CartUI = (props: any) => {
329
329
  <OText size={12} numberOfLines={1}>
330
330
  {walletName[cart?.wallets?.find((wallet: any) => wallet.id === event.wallet_id)?.type]?.name}
331
331
  </OText>
332
- <OText size={12}>-{parsePrice(event.amount)}</OText>
332
+ <OText size={12}>-{parsePrice(event.amount, { isTruncable: true })}</OText>
333
333
  </OSTable>
334
334
  ))}
335
335
  {isCouponEnabled && !isCartPending && (
@@ -276,7 +276,7 @@ const OrderSummaryUI = (props: any) => {
276
276
  <OText size={12} numberOfLines={1}>
277
277
  {walletName[cart?.wallets?.find((wallet: any) => wallet.id === event.wallet_id)?.type]?.name}
278
278
  </OText>
279
- <OText size={12}>-{parsePrice(event.amount)}</OText>
279
+ <OText size={12}>-{parsePrice(event.amount, { isTruncable: true })}</OText>
280
280
  </OSTable>
281
281
  ))}
282
282
  {isCouponEnabled && !isCartPending && (
@@ -48,7 +48,7 @@ const PaymentOptionWalletUI = (props: any) => {
48
48
  new Array(walletsState.result?.length).fill(false)
49
49
  );
50
50
 
51
- const creditBalance: any = (wallet: any) => ` = ${parsePrice((wallet.balance * wallet.redemption_rate) / 100)}`
51
+ const creditBalance: any = (wallet: any) => ` = ${parsePrice(wallet.balance / wallet.redemption_rate)}`
52
52
 
53
53
  const walletName: any = {
54
54
  cash: {