fix: send toast when delete fails in survey editor (#1779)

This commit is contained in:
Matti Nannt
2023-12-14 11:09:22 +01:00
committed by GitHub
parent cd4b6fdae0
commit ab5f18d2c0

View File

@@ -90,7 +90,8 @@ export default function SurveyMenuBar({
setDeleteDialogOpen(false);
router.back();
} catch (error) {
console.log("An error occurred deleting the survey");
console.error("An error occurred deleting the survey");
toast.error("An error occurred deleting the survey");
}
};