From fc95309d5beef3f62d208cd5c07a5a53db8f2129 Mon Sep 17 00:00:00 2001 From: mortezaei Date: Thu, 20 Aug 2026 01:41:46 +0330 Subject: [PATCH] refactor(ui): remove unnecessary finally block in SliderPage submission Remove the finally block from the onboarding completion handler in SliderPage to prevent redundant state updates when errors are already handled within the catch block. --- src/components/Componentes/slider-page.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/Componentes/slider-page.tsx b/src/components/Componentes/slider-page.tsx index 1b2526b..40647eb 100644 --- a/src/components/Componentes/slider-page.tsx +++ b/src/components/Componentes/slider-page.tsx @@ -121,7 +121,6 @@ export default function SliderPage({ onClose }: SliderPageProps = {}) { } catch (error) { console.error("Failed to complete onboarding:", error); setSubmitError(t["Failed to update profile basic details. Please try again."] || "Failed to update profile basic details. Please try again."); - } finally { setIsSubmitting(false); } };