5.1.3: Сброс данных при выходе с экрана Fitbit
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m4s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m4s
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "play-life-web",
|
||||
"version": "5.1.2",
|
||||
"version": "5.1.3",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user