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} />
|
Admin panel <IconArrowRight size={11} stroke={2.5} />
|
||||||
</Link>
|
</Link>
|
||||||
<button
|
<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"
|
className="inline-flex items-center gap-1 px-2.5 py-1 rounded"
|
||||||
style={{
|
style={{
|
||||||
color: 'var(--text-tertiary)',
|
color: 'var(--text-tertiary)',
|
||||||
|
|||||||
Reference in New Issue
Block a user