fix: adding first channel fix

This commit is contained in:
ivannoskov
2025-12-01 08:03:45 +03:00
parent 2ea90d1b55
commit 8e6a1fa83f
2 changed files with 290 additions and 136 deletions

View File

@@ -47,7 +47,7 @@ export const TargetChannelSelector: React.FC = () => {
// Автоматический запуск polling при открытии диалога
useEffect(() => {
if (isAddDialogOpen && !isSuccess && initialChannelCount > 0) {
if (isAddDialogOpen && !isSuccess && initialChannelCount >= 0) {
pollingIntervalRef.current = setInterval(() => {
checkForNewChannels();
}, 1000);