remove isStringValue

This commit is contained in:
2025-11-24 21:03:06 +01:00
parent d470bc8bf1
commit 63be4663ab
3 changed files with 8 additions and 11 deletions
@@ -1,5 +1,5 @@
import { useCallback, useMemo } from 'react';
import { isPlainObject, isStringValue } from '../../utils/typeGuards';
import { isPlainObject } from '../../utils/typeGuards';
type ApiClient = {
post: (path: string, body?: unknown) => Promise<{ data: unknown }>;
@@ -127,7 +127,7 @@ const useDocumentCorrespondentActions = ({
if (isPlainObject(option) && 'id' in option) {
return option as CorrespondentOption;
}
if (isStringValue(option)) {
if (typeof option === 'string') {
const trimmed = option.trim();
if (trimmed) {
return { id: null, name: trimmed };