mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
Fixed portfolio creation bug
This commit is contained in:
parent
5dc13e6738
commit
ac545b2b32
3 changed files with 2 additions and 6 deletions
|
|
@ -68,7 +68,7 @@ const ModalSubmit = ({
|
|||
|
||||
const { mutate, isLoading } = useMutation(createPortfolio, {
|
||||
onSuccess: (data) => {
|
||||
router.push(`/portfolio/${data.id}`);
|
||||
router.push(`/portfolio/${data.portfolioId}`);
|
||||
},
|
||||
onError: (error) => {
|
||||
// handle error
|
||||
|
|
|
|||
|
|
@ -60,8 +60,7 @@ export default function NewPortfolioModal({
|
|||
}) {
|
||||
const [portfolioName, setPortfolioName] = useState("");
|
||||
const [budget, setBudget] = useState<undefined | number>(undefined);
|
||||
const [selectedOutcome, setSelectedOutcome] =
|
||||
useState<string>("Nothing Specific");
|
||||
const [selectedOutcome, setSelectedOutcome] = useState<string>("None");
|
||||
const [buttonDisabled, setButtonDisabled] = useState(true);
|
||||
|
||||
function closeModal() {
|
||||
|
|
|
|||
|
|
@ -1,12 +1,9 @@
|
|||
"use client";
|
||||
import {
|
||||
NavigationMenu,
|
||||
NavigationMenuContent,
|
||||
NavigationMenuItem,
|
||||
NavigationMenuLink,
|
||||
NavigationMenuList,
|
||||
NavigationMenuTrigger,
|
||||
navigationMenuTriggerStyle,
|
||||
} from "@/app/shadcn_components/ui/navigation-menu";
|
||||
import { PlusIcon, TableCellsIcon } from "@heroicons/react/24/outline";
|
||||
import * as React from "react";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue