timroesner / WeMart

🛒 Online grocery shopping portal. Created as part of the course CmpE 133 during spring 2018.
https://wemart-133.herokuapp.com
GNU General Public License v3.0
19 stars 10 forks source link

Price is being truncated #59

Closed timroesner closed 6 years ago

timroesner commented 6 years ago

Some items have the issue where the price does not show trailing zeros. For example '2.00' becomes '2' and '1.50' becomes '1.5'

juancstlm commented 6 years ago

Using Number(price).toFixed(2) in the item cards should fix this issue without having to edit prices in the back end

timroesner commented 6 years ago

Will make this change in Item page and Shopping List as well.

@rajmakda can you also change this in the cart

Sent with GitHawk