This commit is contained in:
Dobromir Popov
2024-04-06 22:58:46 +03:00
parent ad3d8d7b87
commit 3be5e710c6
4 changed files with 6 additions and 7 deletions

View File

@ -4,8 +4,7 @@ import toast from "react-hot-toast";
import { useRouter } from "next/router";
const PublisherInlineForm = ({ publisherId, initialShiftsPerMonth }) => {
const [desiredShiftsPerMonth, setDesiredShiftsPerMonth] = useState(initialShiftsPerMonth);
const router = useRouter();
const [desiredShiftsPerMonth, setDesiredShiftsPerMonth] = useState(initialShiftsPerMonth || 2);
const storedValue = useRef(initialShiftsPerMonth);
useEffect(() => {