aboutsummaryrefslogtreecommitdiff
path: root/src/components/SolutionCard
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/SolutionCard')
-rw-r--r--src/components/SolutionCard/SolutionCard.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/SolutionCard/SolutionCard.js b/src/components/SolutionCard/SolutionCard.js
index 7cca74c..1fff873 100644
--- a/src/components/SolutionCard/SolutionCard.js
+++ b/src/components/SolutionCard/SolutionCard.js
@@ -54,9 +54,10 @@ const SolutionCard = ({ data, removeThisCard }) => {
};
const handleDelete = () => {
- del(`solutions/${data.id}/`);
+ del(`solutions/${data.id}/`).then(() => {
+ removeThisCard(data.id);
+ });
handleClose();
- removeThisCard(data.id);
};
return (