diff --git a/Sources/Secretive/Views/Secrets/StoreListView.swift b/Sources/Secretive/Views/Secrets/StoreListView.swift index 2c8d439..d084777 100644 --- a/Sources/Secretive/Views/Secrets/StoreListView.swift +++ b/Sources/Secretive/Views/Secrets/StoreListView.swift @@ -43,7 +43,11 @@ struct StoreListView: View { // Do this to avoid a blip. SecretDetailView(secret: nextDefaultSecret) } else { - EmptyStoreView(store: storeList.modifiableStore ?? storeList.stores.first) + if let modifiable = storeList.modifiableStore, modifiable.isAvailable { + EmptyStoreView(store: modifiable) + } else { + EmptyStoreView(store: storeList.stores.first(where: \.isAvailable)) + } } } .navigationSplitViewStyle(.balanced)