Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions reactfire/auth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function AuthCheck({
fallback,
children,
requiredClaims
}: AuthCheckProps): React.ReactNode {
}: AuthCheckProps): JSX.Element {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and the change on line 36 cause a typescript compile error because they conflict with the props declared on line 47 and 48

const user = useUser<User>(auth);

if (user) {
Expand All @@ -105,9 +105,9 @@ export function AuthCheck({
{children}
</ClaimsCheck>
) : (
children
<>{children}</>
);
} else {
return fallback;
return <>{fallback}</>;
}
}
2 changes: 1 addition & 1 deletion reactfire/performance/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function SuspenseWithPerf({
traceId,
fallback,
firePerf
}: SuspensePerfProps) {
}: SuspensePerfProps): JSX.Element {
firePerf = firePerf || getPerfFromContext();

const Fallback = () => {
Expand Down