fix: Stop creation of empty name segments on people page (#4028)

Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
This commit is contained in:
DivyanshuLohani
2024-10-31 09:04:12 +05:30
committed by GitHub
parent 189dc52ee9
commit 91b6a9e008

View File

@@ -101,7 +101,7 @@ export const BasicCreateSegmentModal = ({
const isSaveDisabled = useMemo(() => {
// check if title is empty
if (!segment.title) {
if (!segment.title.trim()) {
return true;
}