6.11.1: Фикс моргания кнопки завершения закупки
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m3s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m3s
This commit is contained in:
@@ -110,17 +110,16 @@ function PurchaseScreen({ onNavigate, purchaseConfigId, taskId, taskName }) {
|
||||
body: JSON.stringify({})
|
||||
})
|
||||
if (response.ok) {
|
||||
setToast({ message: 'Задача выполнена', type: 'success' })
|
||||
setTimeout(() => onNavigate?.('tasks'), 500)
|
||||
return
|
||||
} else {
|
||||
const errorData = await response.json().catch(() => ({}))
|
||||
setToast({ message: errorData.error || 'Ошибка выполнения', type: 'error' })
|
||||
}
|
||||
} catch (err) {
|
||||
setToast({ message: 'Ошибка выполнения', type: 'error' })
|
||||
} finally {
|
||||
setIsCompleting(false)
|
||||
}
|
||||
setIsCompleting(false)
|
||||
}
|
||||
|
||||
// Синхронизация refs для диалогов
|
||||
|
||||
Reference in New Issue
Block a user