Complete all for Items
This commit is contained in:
@@ -57,9 +57,10 @@ export function validateBrandName(name: string): Record<string, string> {
|
||||
return errors
|
||||
}
|
||||
|
||||
export function validateVariantCategoryName(name: string): Record<string, string> {
|
||||
/** Renamed from validateVariantCategoryName — "variant categories" are Item Types now. */
|
||||
export function validateItemTypeName(name: string): Record<string, string> {
|
||||
const errors: Record<string, string> = {}
|
||||
if (!name.trim()) errors.name = "Category name is required"
|
||||
if (!name.trim()) errors.name = "Item type name is required"
|
||||
return errors
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user