Skip to content

Conversation

@sylwia-werner
Copy link
Collaborator

@sylwia-werner sylwia-werner commented Oct 16, 2025

@sylwia-werner sylwia-werner requested a review from pfulara October 16, 2025 06:39
@vercel
Copy link

vercel bot commented Oct 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
mercurvendor-testing Ready Ready Preview Comment Nov 3, 2025 10:47am
vendor-panel Ready Ready Preview Comment Nov 3, 2025 10:47am
vendor-plugin-test Ready Ready Preview Comment Nov 3, 2025 10:47am
vendor-sandbox Ready Ready Preview Comment Nov 3, 2025 10:47am

} from "../../../../../lib/data/currencies"

export const CreateCampaignFormFields = ({ form, fieldScope = "" }) => {
export const CreateCampaignFormFields = ({ form, fieldScope = "" }: { form:any, fieldScope: string }) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we not use 'any' here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, I created helper types to handle forms using this fields component

Comment on lines 9 to 14
if (!id) {
throw new Error("Customer ID is required")
}

const { customer, isPending, isError, error } = useCustomer(id)
const { mutateAsync, isPending: isMutating } = useUpdateCustomer(id)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure about this - aren't we using hook conditionally in this case? how about passing {enabled: !!id}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed everywhere 👍 you're right

Comment on lines 11 to 15
if (!id) {
throw new Error("Inventory Item ID is required")
}

const { inventory_item, isPending, isError, error } = useInventoryItem(id)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as above - conditional hook usage

})

const { mutateAsync, isLoading } = {}
const { mutateAsync, isLoading }: { mutateAsync?: any; isLoading?: boolean } = {}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have to use this 'any' here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The component isn't used anywhere and looks like placeholder for future use, we don't have API to handle order note either. Leaving it with any + comment why

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so please check if this could be deleted

mikolvj
mikolvj previously approved these changes Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants