Skip to content

Commit 6f9f28e

Browse files
committed
fix(angular): removed catch and updates styles imports
1 parent dc946b2 commit 6f9f28e

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

examples/angular/src/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
/* You can add global styles to this file, and also import other style files */
1818
@import "tailwindcss";
19-
@import "@firebase-ui/styles/src/base.css";
19+
@import "@firebase-ui/styles/tailwind";

packages/angular/src/lib/provider.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,11 @@ export function provideFirebaseUI(uiFactory: (apps: FirebaseApps) => FirebaseUIT
4444
{
4545
provide: FIREBASE_UI_STORE,
4646
useFactory: () => {
47-
try {
48-
// Try to get FirebaseApps, but handle the case where it's not available (SSR)
49-
const apps = inject(FirebaseApps);
50-
if (!apps || apps.length === 0) {
51-
return null as any;
52-
}
53-
return uiFactory(apps);
54-
} catch (error) {
55-
// Return null for SSR when FirebaseApps is not available
47+
const apps = inject(FirebaseApps);
48+
if (!apps || apps.length === 0) {
5649
return null as any;
5750
}
51+
return uiFactory(apps);
5852
},
5953
},
6054
FirebaseUI,

0 commit comments

Comments
 (0)