Skip to content

Commit

Permalink
Merge branch 'main' into cirrus-types
Browse files Browse the repository at this point in the history
  • Loading branch information
rhelmer authored Jan 17, 2025
2 parents 2b7d8d7 + 47ea9a7 commit 41554bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/functions/server/getExperiments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export async function getExperiments(params: {
};
}

return experimentData ?? defaultExperimentData;
return (experimentData as ExperimentData) ?? defaultExperimentData;
} catch (ex) {
logger.error("Could not connect to Cirrus", {
serverUrl,
Expand Down
1 change: 1 addition & 0 deletions src/app/hooks/useGlean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const useGlean = () => {
// Record the `nimbus_*` keys on all events.
// `nimbus_*` is set on every metric, but it's too much work for TypeScript
// to infer that — hence the type assertion.

if (
experimentData &&
typeof experimentData["Enrollments"] !== "undefined"
Expand Down

0 comments on commit 41554bd

Please sign in to comment.