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

mozilla / fx-private-relay / 9d606149-97c1-4c70-a67d-6ab07818a5d2

29 May 2025 12:37AM UTC coverage: 85.574% (+0.2%) from 85.353%
9d606149-97c1-4c70-a67d-6ab07818a5d2

Pull #5573

circleci

vpremamozilla
for MPP-4155: add MEGABUNDLE_PROD_ID and MEGABUNDLE_PLANS to runtimeDatai
Pull Request #5573: MPP-4155 New Megabundle Banner Landing Page

2489 of 3629 branches covered (68.59%)

Branch coverage included in aggregate %.

60 of 62 new or added lines in 8 files covered. (96.77%)

20 existing lines in 7 files now uncovered.

17597 of 19843 relevant lines covered (88.68%)

9.98 hits per line

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

83.33
/frontend/src/hooks/session.ts
1
import { useProfiles } from "./api/profile";
9✔
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 {
335✔
10
  const profileData = useProfiles();
335✔
11
  if (profileData.isLoading) {
335!
UNCOV
12
    return "unknown";
×
13
  }
14
  return typeof profileData !== "undefined" &&
335✔
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