• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / fx-private-relay / d4d9f278-d845-4992-8c81-4f3757c427a1

08 Sep 2025 02:07PM UTC coverage: 86.303% (-1.8%) from 88.121%
d4d9f278-d845-4992-8c81-4f3757c427a1

Pull #5842

circleci

joeherm
fix(deploy): Update CircleCI to use common Dockerfile for building frontend
Pull Request #5842: fix(deploy): Unify Dockerfiles

2744 of 3951 branches covered (69.45%)

Branch coverage included in aggregate %.

17910 of 19981 relevant lines covered (89.64%)

9.96 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.62
/frontend/src/hooks/session.ts
1
import { useProfiles } from "./api/profile";
11✔
2

3
export type LoggedInState = "logged-out" | "logged-in" | "unknown";
4

5
/*
6
 * Is the user logged in?
7
 * @returns LoggedInState, 'unknown' if loading profiles, 'logged-in' or 'logged-out' once known
8
 */
9
export function useIsLoggedIn(): LoggedInState {
327✔
10
  const profileData = useProfiles();
326✔
11
  if (profileData.isLoading) {
326!
12
    return "unknown";
×
13
  }
14
  return typeof profileData !== "undefined" &&
326✔
15
    typeof profileData.data !== "undefined" &&
16
    typeof profileData.error === "undefined"
17
    ? "logged-in"
18
    : "logged-out";
19
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc