<p dir="auto">When trying to rename a user account to an invalid name, the invalid name is shown in the upper right corner as if the rename already happened:<br>
<a href="https://github.com/user-attachments/assets/319ac66a-6f2b-4c41-b1e5-67dc9410ce21">image.png (view on web)</a></p>
<p dir="auto">This PR shows the name before the invalid change:<br>
<a href="https://github.com/user-attachments/assets/1e502034-88a3-4e24-b5af-d37837b6bff6">image.png (view on web)</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5896'>https://github.com/openstreetmap/openstreetmap-website/pull/5896</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5896/commits/f39c8dd5823699876f0b6a40ef49a0e4afd52307" class="commit-link">f39c8dd</a>  Show valid username in header when renaming</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5896/files">2 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5896/files#diff-6d2ef58207c92d1533287af551a075122ba98240a861819047a2ae77b7674f0b">app/views/layouts/_header.html.erb</a>
    (2)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5896/files#diff-d0973c5389ca34d216319ac3238052c8c6277bb3ca68ba0780cbda9553b24e33">test/system/account_rename_test.rb</a>
    (19)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5896.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5896.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5896.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5896.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5896">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPFDP3LB3AMEUV36CL2YAUR7AVCNFSM6AAAAAB2Q2GRO6VHI2DSMVQWIX3LMV43ASLTON2WKOZSHE3TINBUHE2DGOI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLPCYUONOEK3FDMA6UD2YAUR7A5CNFSM6AAAAAB2Q2GRO6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLCST7D4.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5896</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5896",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5896",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>