Add missing preventDefault

This commit is contained in:
Niek van der Maas
2023-03-24 15:19:13 +01:00
parent 71179d699e
commit a58e94b207

View File

@@ -44,7 +44,7 @@
<a class="panel-block" <a class="panel-block"
href="{'#/'}" href="{'#/'}"
class:is-disabled={!$apiKeyStorage} class:is-disabled={!$apiKeyStorage}
on:click={() => { on:click|preventDefault={() => {
const confirmDelete = window.confirm('Are you sure you want to delete all your chats?') const confirmDelete = window.confirm('Are you sure you want to delete all your chats?')
if (confirmDelete) { if (confirmDelete) {
replace('#/').then(() => clearChats()) replace('#/').then(() => clearChats())