await exit before redirecting so cookies get cleared
This commit is contained in:
@@ -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)',
|
||||
|
||||
Reference in New Issue
Block a user