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

@@ -1 +1 @@
6.17.3 6.17.4

View File

@@ -1,6 +1,6 @@
{ {
"name": "play-life-web", "name": "play-life-web",
"version": "6.17.3", "version": "6.17.4",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

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