Skip to content

Commit

Permalink
Merge pull request #4 from mweiss237/dev
Browse files Browse the repository at this point in the history
hotfix(Link): cancel link edit fix
  • Loading branch information
mweiss237 authored May 8, 2024
2 parents afa72d1 + 3f5bb50 commit 22a3940
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wischlist",
"version": "0.1.2",
"version": "0.1.3",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
3 changes: 2 additions & 1 deletion src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 22a3940

Please sign in to comment.