From f034092b44270fba86eaa768970188ce11806236 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Sat, 26 Aug 2017 15:46:56 -0400 Subject: [PATCH] Write post-save count, not pre-save count to the changesets_count tag (closes #4283) --- modules/ui/commit.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ui/commit.js b/modules/ui/commit.js index 9c54a6d4f..9582a8386 100644 --- a/modules/ui/commit.js +++ b/modules/ui/commit.js @@ -339,10 +339,11 @@ export function uiCommit(context) { // always update userdetails, just in case user reauthenticates as someone else if (userDetails && userDetails.changesets_count !== undefined) { - tags.changesets_count = String(userDetails.changesets_count); + var changesetsCount = parseInt(userDetails.changesets_count, 10) + 1; // #4283 + tags.changesets_count = String(changesetsCount); // first 100 edits - new user - if (parseInt(tags.changesets_count, 10) < 100) { + if (changesetsCount <= 100) { var s; s = context.storage('walkthrough_completed'); if (s) {