Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions views/ProductView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,25 +77,27 @@ const ProductView = ({
}

const handleIDontNeedIt = async () => {
onShowIDontNeedIt(product)

if (product) {
try {
await ProductActionManager.dontNeedIt(product)
} catch (error) {
console.error("[ProductView] Failed to execute dontNeedIt:", error)
}
}
onShowIDontNeedIt(product)
}

const handleINeedIt = async () => {
onShowINeedIt()

if (product) {
try {
await ProductActionManager.needIt(product)
} catch (error) {
console.error("[ProductView] Failed to execute needIt:", error)
}
}
onShowINeedIt()
}

const handleCloseClick = () => {
Expand Down