Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. releasing issue after testing to production
  2.  
  3. git checkout master
  4. git pull origin master
  5. git checkout -b hotfix/branch name
  6. git cherry-pick 39e496f
  7. git push -u origin hotfix/branch name
  8. then create a PR to master
  9.  
  10. {
  11. Header: "Balance",
  12. id: "balance",
  13. accessor: wallet => {
  14. return(
  15. <NumberFormat
  16. value={wallet.balance}
  17. displayType={'text'}
  18. thousandSeparator={true}
  19. />
  20. )
  21. },
  22. style: {
  23. textAlign: 'center'
  24. },
  25. },
  26.  
  27. handleZarInput = (e) => {
  28. e.preventDefault();
  29. const { value } = e.target;
  30. if (value === '0') {
  31. this.setState({
  32. [e.target.name]: '0.00'
  33. })
  34. } else {
  35. const strippedInput = value.replace(/\./, '');
  36. const parsedInput = (parseFloat(strippedInput) / 100).toFixed(2).toString()
  37. console.log('parsed', parsedPrice)
  38. this.setState({
  39. [e.target.name]: parsedInput
  40. });
  41.  
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement