Fix amount calculation

Was using the wrong object as argument.
This commit is contained in:
Basti 2018-06-14 15:02:20 +02:00
parent a95bf0141e
commit 189f7fe4ee

View File

@ -137,7 +137,7 @@ module.exports = async function(robot, kredits) {
function createProposalForUserChanges (user, changes) { function createProposalForUserChanges (user, changes) {
const details = analyzeUserChanges(user, changes); const details = analyzeUserChanges(user, changes);
const amount = calculateAmountForChanges(changes); const amount = calculateAmountForChanges(details);
let desc = `Added ${details.charsAdded} characters of text.`; let desc = `Added ${details.charsAdded} characters of text.`;
if (details.pagesChanged.length > 0) { if (details.pagesChanged.length > 0) {