longzheng / mypal-ionic

Mobile app to see Myki account details for iOS & Android
MIT License
68 stars 13 forks source link

Don't strip negative from balance #58

Closed Jason-Hendry closed 7 years ago

longzheng commented 7 years ago

Now you've made me doubt why I ever had it in the first place...

longzheng commented 7 years ago

Oh right sometimes the balance is just "-", which I don't want to parse.

Need to change the next line to trans.moneyBalance = moneyBalance != "-" ? parseFloat(moneyBalance) : null