Skip to content

Commit

Permalink
style(prettier): run prettier -w .
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Jul 22, 2024
1 parent 812445a commit 6f9c895
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/document/organisms/toc/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function TOC({ toc, title }: { toc: Toc[]; title?: string }) {
}, [observedElements, referencedIds]);

useFirstVisibleElement(observedElements, (element: Element | null) => {
const id = element ? idByObservedElement.current.get(element) ?? "" : "";
const id = element ? (idByObservedElement.current.get(element) ?? "") : "";
if (id !== currentViewedTocItem) {
setCurrentViewedTocItem(id);
}
Expand Down
2 changes: 1 addition & 1 deletion client/src/user-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export function UserDataProvider(props: { children: React.ReactNode }) {
subscriptionType:
data.subscription_type === "core"
? SubscriptionType.MDN_CORE
: data.subscription_type ?? null,
: (data.subscription_type ?? null),
subscriberNumber: data.subscriber_number || null,
email: data.email || null,
geo: {
Expand Down
2 changes: 1 addition & 1 deletion cloud-function/src/headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function getCacheMaxAgeForUrl(url: string): number {
}

function parseContentType(value: unknown): string {
const firstValue = Array.isArray(value) ? value[0] ?? "" : value;
const firstValue = Array.isArray(value) ? (value[0] ?? "") : value;

return typeof firstValue === "string" ? firstValue : "";
}
Expand Down

0 comments on commit 6f9c895

Please sign in to comment.