6.17.4: Фикс закрытия экрана закупки через history.back
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m14s

This commit is contained in:
poignatov
2026-03-15 18:04:54 +03:00
parent 710adff385
commit b85b85a27f
3 changed files with 4 additions and 4 deletions

View File

@@ -97,7 +97,7 @@ function PurchaseScreen({ onNavigate, purchaseConfigId, taskId, taskName }) {
}
const handleClose = () => {
onNavigate?.('tasks')
window.history.back()
}
const handleCompleteTask = async () => {
@@ -110,7 +110,7 @@ function PurchaseScreen({ onNavigate, purchaseConfigId, taskId, taskName }) {
body: JSON.stringify({})
})
if (response.ok) {
setTimeout(() => onNavigate?.('tasks'), 500)
setTimeout(() => window.history.back(), 500)
return
} else {
const errorData = await response.json().catch(() => ({}))