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:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user