Skip to content

Commit

Permalink
Remove leading zeros from price in case it is added manually on a price
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamkmr04 committed Jun 18, 2024
1 parent b90ebc4 commit a3f955b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/POS/ProductDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export default class ProductDetails extends React.Component<
) {
value = '';
}
value = value;
value = value.replace(/^0+(?!$)/, '');
break;
}
product[field] = value;
Expand Down

0 comments on commit a3f955b

Please sign in to comment.