aurora-1799 отображение ошибки в случае выбора только дт или кт в таблице #207

Merged
aep merged 7 commits from fix/chessTable into main 2026-10-29 20:40:33 +03:00
Showing only changes of commit 65c44978bd - Show all commits

View File

@ -140,7 +140,7 @@ export const shouldWarnCounterPairs = (
pairs: readonly CounterPairOut[],
storage: Pick<Storage, 'getItem'> | null,
): boolean => {
if (pairs.length === 0) return false;
if (pairs?.length === 0) return false;
if (status && FINISHED_STATUSES.includes(status)) return false;
try {
return storage?.getItem(`${COUNTER_PAIRS_STORAGE_PREFIX}${versionId}`) !== counterPairsKey(pairs);