diff --git a/src/app/portfolio/[slug]/(portfolio)/settings/PortfolioSettings.tsx b/src/app/portfolio/[slug]/(portfolio)/settings/PortfolioSettings.tsx index 1c7f888..d99da54 100644 --- a/src/app/portfolio/[slug]/(portfolio)/settings/PortfolioSettings.tsx +++ b/src/app/portfolio/[slug]/(portfolio)/settings/PortfolioSettings.tsx @@ -93,8 +93,18 @@ export default function PortfolioSettings({ const [deleteConfirmationByName, setDeleteConfirmationByName] = useState("") function handleDeleteConfirmation() { - // if (deleteConfirmationByName === portfolioName) console.log("we be deletin stuff") + if (deleteConfirmationByName === portfolioName) { + //API call to delete portfolio + //deletePortfolio(portfolioId) + router.refresh(); + setIsDeleteModalOpen(false); + } else { + // Error if the names don't match + console.log("Portfolio name does not match"); + } + } + } // RENAMING FUNCTIONS