no longer manipulating prop. still can't get formatting to twork
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export function getDollars(cents) {
|
||||
// return `$${Math.floor(cents / 100)}.${cents % 100}`
|
||||
return cents / 100
|
||||
}
|
||||
|
||||
export function getCents(dollars) {
|
||||
return Math.round(dollars * 100)
|
||||
}
|
||||
Reference in New Issue
Block a user