From f7a1872df2154e658fdf8cc549e4be3a0c333cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Wei=C3=9F?= Date: Wed, 8 May 2024 12:51:39 +0200 Subject: [PATCH 1/2] fix cancel link edit --- src/components/Card/Card.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Card/Card.tsx b/src/components/Card/Card.tsx index 34f28e1..fa6a229 100644 --- a/src/components/Card/Card.tsx +++ b/src/components/Card/Card.tsx @@ -34,7 +34,8 @@ const Card = ({ id, value = "", link, onDelete, onSave, onAddLink }: CardParams) }, addLink: () => { const newLink = prompt("Füge hier einen Link ein: (leer lassen zum Löschen)") - onAddLink(newLink || "") + if (newLink !== null) + onAddLink(newLink) } } return ( From ed39a0c69d3a879053879312105d937a6e541c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Wei=C3=9F?= Date: Wed, 8 May 2024 12:51:51 +0200 Subject: [PATCH 2/2] bump version for hotfix --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ea6b5d0..c8d9269 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wischlist", - "version": "0.1.2", + "version": "0.1.3", "private": true, "scripts": { "dev": "next dev",