5.1.3: Сброс данных при выходе с экрана Fitbit
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m4s

This commit is contained in:
poignatov
2026-02-09 17:43:21 +03:00
parent 76049b3da5
commit 41f8df36a9
3 changed files with 9 additions and 4 deletions

View File

@@ -1 +1 @@
5.1.2 5.1.3

View File

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

View File

@@ -350,10 +350,15 @@ function FitbitIntegration({ onNavigate }) {
(editedBindings.floors_goal_task_id ?? null) !== (bindings.floors_goal_task_id ?? null) || (editedBindings.floors_goal_task_id ?? null) !== (bindings.floors_goal_task_id ?? null) ||
(editedBindings.floors_goal_subtask_id ?? null) !== (bindings.floors_goal_subtask_id ?? null) (editedBindings.floors_goal_subtask_id ?? null) !== (bindings.floors_goal_subtask_id ?? null)
const handleClose = () => {
setEditedBindings(bindings)
onNavigate?.('profile')
}
if (isLoadingError && !loading) { if (isLoadingError && !loading) {
return ( return (
<div className="p-4 md:p-6"> <div className="p-4 md:p-6">
<button className="close-x-button" onClick={() => onNavigate?.('profile')} title="Закрыть"> <button className="close-x-button" onClick={handleClose} title="Закрыть">
</button> </button>
<LoadingError onRetry={checkStatus} /> <LoadingError onRetry={checkStatus} />
@@ -363,7 +368,7 @@ function FitbitIntegration({ onNavigate }) {
return ( return (
<div className="p-4 md:p-6"> <div className="p-4 md:p-6">
<button className="close-x-button" onClick={() => onNavigate?.('profile')} title="Закрыть"> <button className="close-x-button" onClick={handleClose} title="Закрыть">
</button> </button>