MCPcopy Index your code
hub / github.com/simstudioai/sim / validateRequired

Function validateRequired

apps/sim/ee/sso/components/sso-settings.tsx:224–228  ·  view source on GitHub ↗
(label: string, value: string)

Source from the content-addressed store, hash-verified

222 }
223
224 const validateRequired = (label: string, value: string): string[] => {
225 const out: string[] = []
226 if (!value || !value.trim()) out.push(`${label} is required.`)
227 return out
228 }
229
230 const validateAll = (data: typeof formData) => {
231 const newErrors: Record<string, string[]> = {

Callers 1

validateAllFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected