Add missing preventDefault

This commit is contained in:
Niek van der Maas 2023-03-24 15:19:13 +01:00
parent 71179d699e
commit a58e94b207
1 changed files with 1 additions and 1 deletions

View File

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