MCPcopy Create free account
hub / github.com/R44VC0RP/opencode.cafe / updateField

Function updateField

app/submit/page.tsx:222–225  ·  view source on GitHub ↗
(field: keyof FormData, value: string)

Source from the content-addressed store, hash-verified

220 const isCheckingProductId = formData.productId !== debouncedProductId && formData.productId.length >= 2
221
222 const updateField = (field: keyof FormData, value: string) => {
223 setFormData((prev) => ({ ...prev, [field]: value }))
224 setError(null)
225 }
226
227 const parseAndApplyJson = (jsonString: string) => {
228 setJsonError(null)

Callers 1

SubmitFormFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected