diff --git a/stubs/inertia-react-ts/resources/js/Pages/Profile/Partials/DeleteUserForm.tsx b/stubs/inertia-react-ts/resources/js/Pages/Profile/Partials/DeleteUserForm.tsx index 53e7ba71d..64bb79d13 100644 --- a/stubs/inertia-react-ts/resources/js/Pages/Profile/Partials/DeleteUserForm.tsx +++ b/stubs/inertia-react-ts/resources/js/Pages/Profile/Partials/DeleteUserForm.tsx @@ -9,7 +9,7 @@ import { useForm } from '@inertiajs/react'; export default function DeleteUserForm({ className = '' }: { className?: string }) { const [confirmingUserDeletion, setConfirmingUserDeletion] = useState(false); - const passwordInput = useRef(); + const passwordInput = useRef(null); const { data, diff --git a/stubs/inertia-react-ts/resources/js/Pages/Profile/Partials/UpdatePasswordForm.tsx b/stubs/inertia-react-ts/resources/js/Pages/Profile/Partials/UpdatePasswordForm.tsx index a84dfef71..81016f8b7 100644 --- a/stubs/inertia-react-ts/resources/js/Pages/Profile/Partials/UpdatePasswordForm.tsx +++ b/stubs/inertia-react-ts/resources/js/Pages/Profile/Partials/UpdatePasswordForm.tsx @@ -7,8 +7,8 @@ import { useForm } from '@inertiajs/react'; import { Transition } from '@headlessui/react'; export default function UpdatePasswordForm({ className = '' }: { className?: string }) { - const passwordInput = useRef(); - const currentPasswordInput = useRef(); + const passwordInput = useRef(null); + const currentPasswordInput = useRef(null); const { data, setData, errors, put, reset, processing, recentlySuccessful } = useForm({ current_password: '',