Fix: Prevent data reset without login

The data reset functionality was incorrectly prompting for login even when the user was already logged in. This commit ensures that data reset operations are only triggered when a user is authenticated.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-16 09:24:41 +00:00
parent f7ad2b6d42
commit 351b5e6d36
4 changed files with 36 additions and 74 deletions

View File

@@ -94,11 +94,8 @@ function App() {
<Route path="/transactions" element={<Transactions />} />
{/* 분석 페이지는 더 이상 인증이 필요하지 않음 */}
<Route path="/analytics" element={<Analytics />} />
<Route path="/security-privacy" element={
<PrivateRoute>
<SecurityPrivacySettings />
</PrivateRoute>
} />
{/* 보안 및 개인정보 페이지도 로그인 없이 접근 가능하도록 수정 */}
<Route path="/security-privacy" element={<SecurityPrivacySettings />} />
<Route path="/notifications" element={
<PrivateRoute>
<NotificationSettings />