Fix user creation

This commit is contained in:
aditya.chandel
2025-03-08 11:38:12 -07:00
parent 4d9b0423ba
commit d705c7c04e
6 changed files with 13 additions and 21 deletions
@@ -29,7 +29,7 @@ export class BookService {
loadBooks(): void {
const currentState = this.bookStateSubject.value;
if (currentState.loaded) {
if (currentState.loaded && this.bookStateSubject.value.books != null) {
return;
}
this.http.get<Book[]>(this.url).pipe(