contracts update
This commit is contained in:
@@ -6,7 +6,8 @@ export function getImageUrl(url) {
|
||||
export function getPercentage(amount, goal) {
|
||||
console.log("amount", amount);
|
||||
console.log("goal", goal);
|
||||
return ((amount / goal) * 100).toFixed(2);
|
||||
|
||||
return ((Number(amount) / Number(goal)) * 100).toFixed(2);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user