refactor: remove terms acceptance reset (#9)
This commit is contained in:
@@ -84,7 +84,6 @@ class SettingsViewModel: ObservableObject {
|
|||||||
|
|
||||||
func resetOnboarding() {
|
func resetOnboarding() {
|
||||||
settings.hasCompletedOnboarding = false
|
settings.hasCompletedOnboarding = false
|
||||||
settings.hasAcceptedTerms = false
|
|
||||||
saveSettings(showMessage: false)
|
saveSettings(showMessage: false)
|
||||||
|
|
||||||
// Force app to restart or recreate views by posting a notification
|
// Force app to restart or recreate views by posting a notification
|
||||||
|
|||||||
@@ -151,9 +151,9 @@ struct OnboardingView: View {
|
|||||||
}
|
}
|
||||||
.onAppear {
|
.onAppear {
|
||||||
checkPermissions()
|
checkPermissions()
|
||||||
// Load existing API key if available
|
|
||||||
settingsViewModel.loadAPIKey()
|
settingsViewModel.loadAPIKey()
|
||||||
apiKey = settingsViewModel.settings.openAIKey
|
apiKey = settingsViewModel.settings.openAIKey
|
||||||
|
hasAcceptedTerms = settingsViewModel.settings.hasAcceptedTerms
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user