We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78f23c4 commit fcea4f4Copy full SHA for fcea4f4
src/features/settings/components/SourceSettings.tsx
@@ -53,11 +53,16 @@ export const SourceSettings = () => {
53
})
54
}
55
onConfirm={() => {
56
+ if (!confirmDelete.option) {
57
+ return
58
+ }
59
+
60
const newUserCards = userCustomCards.filter(
61
(card) => card.value !== confirmDelete.option?.value
62
)
- console.log('newUserCards', userCustomCards, newUserCards)
63
+ const newCards = cards.filter((card) => card.name !== confirmDelete.option?.value)
64
setUserCustomCards(newUserCards)
65
+ setCards(newCards)
66
setConfirmDelete({ showModal: false, option: undefined })
67
}}
68
/>
0 commit comments