mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-31 01:09:22 +02:00
Write post-save count, not pre-save count to the changesets_count tag
(closes #4283)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user