Skip to content

Commit

Permalink
fix: type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-acosta committed Jun 21, 2024
1 parent 07381f6 commit f9a7c0c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/InstallStepper/CompanyContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Card } from "@/components";
export const CompanyContent = ({
open = false,
onClick = () => {},
searchParams = {},
searchParams = { name: "" },
}) => (
<Accordion open={open}>
<AccordionHeader onClick={onClick}>Company Info</AccordionHeader>
Expand All @@ -20,7 +20,7 @@ export const CompanyContent = ({
<input
className="border bg-inherit rounded px-4 py-1.5 shadow-inner"
defaultValue={
Object.hasOwn(searchParams, "name") ? searchParams?.name : ""
Object.hasOwn(searchParams, "name") ? searchParams.name : ""
}
name="name"
type="text"
Expand Down
2 changes: 1 addition & 1 deletion components/InstallStepper/NavArrows.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const NavArrows = ({
handlePrev = () => {},
isFirstStep = false,
handleNext = () => {},
isLastStep = () => {},
isLastStep = false,
}) => (
<div className="absolute -left-8 -right-8 top-1/2 flex justify-between">
<IconButton
Expand Down
1 change: 0 additions & 1 deletion components/InstallStepper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const InstallStepper = ({
description: "",
error: "",
user_error: false,
install_components: [],
});

// create or update install when form is submitted
Expand Down

0 comments on commit f9a7c0c

Please sign in to comment.