frontend/smart-hut/src/components/dashboard/devices/constants.js

6 lines
135 B
JavaScript
Raw Normal View History

export const DEVICE_NAME_MAX_LENGTH = 15;
export function checkMaxLength(name){
return !(name.length > DEVICE_NAME_MAX_LENGTH);
}