Skip to content

Commit

Permalink
fix(typescript): fixed typescript issues
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbenton committed Mar 11, 2024
1 parent e54d50f commit 34a8700
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface ImageInputProps {
export function ImageInput(props: ImageInputProps) {
const { value, onChange, watch } = props;

const name = watch("name", "");
const name = watch("name") ?? "";

const [dialogOpen, setDialogOpen] = useState(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ export function useSyncHomebrewContent(
watch: UseFormWatch<Form>,
campaignId?: string
) {
const expansionMap = watch("enabledExpansionMap", {});
const expansionMap = watch("enabledExpansionMap");
// const expansionMap = watch("enabledExpansionMap", {});

const expansions = useMemo(
() =>
Object.keys(expansionMap).filter(
Object.keys(expansionMap ?? {}).filter(
(expansionId) => expansionMap[expansionId]
),
[expansionMap]
Expand Down

0 comments on commit 34a8700

Please sign in to comment.