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

@@ -350,10 +350,15 @@ function FitbitIntegration({ onNavigate }) {
(editedBindings.floors_goal_task_id ?? null) !== (bindings.floors_goal_task_id ?? null) ||
(editedBindings.floors_goal_subtask_id ?? null) !== (bindings.floors_goal_subtask_id ?? null)
const handleClose = () => {
setEditedBindings(bindings)
onNavigate?.('profile')
}
if (isLoadingError && !loading) {
return (
<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>
<LoadingError onRetry={checkStatus} />
@@ -363,7 +368,7 @@ function FitbitIntegration({ onNavigate }) {
return (
<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>