await exit before redirecting so cookies get cleared

This commit is contained in:
2026-03-21 23:04:53 +02:00
parent dae5411359
commit 200b44246f

View File

@@ -427,7 +427,7 @@ function AdminBanner() {
Admin panel <IconArrowRight size={11} stroke={2.5} />
</Link>
<button
onClick={() => { admin.exitAdminMode(); window.location.href = '/' }}
onClick={async () => { await admin.exitAdminMode(); window.location.href = '/' }}
className="inline-flex items-center gap-1 px-2.5 py-1 rounded"
style={{
color: 'var(--text-tertiary)',