changes.mady.by.user Caes, Guilherme
Saved on Aug 22, 2024
changes.mady.by.user Goncalves, Felipe
...
File: src/components/points-details-card/index.tsxChanges:
Add field “Initial points balance“
Add “ - “ before “Points used”
Add “-“ only in numbers greater than 0'
points used: 0
points used: -123
Add filed “Total transaction points“
pointsEarned - pointsUsed consider bonusPoints as well
pointsEarned - pointsUsed
Label “Balance“ to “Final points balance“
pointsBalance + (pointsEarned - pointsUsed) consider debits as well
pointsBalance + (pointsEarned - pointsUsed)
File Local src/utils/utils.ts…
function to calculate initial points value
function to calculate earn points value (earn + bonus)
function to calcutate transaction points value (earn + bonus - used)
function to calculate final point value (balancePoints + (pointsEarned - pointsUsed) )