Skip to content

Commit

Permalink
Write post-save count, not pre-save count to the changesets_count tag
Browse files Browse the repository at this point in the history
(closes #4283)
  • Loading branch information
bhousel committed Aug 26, 2017
1 parent 3fac23e commit f034092
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/ui/commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f034092

Please sign in to comment.