Skip to content

Commit 854d94b

Browse files
author
Juarez Mota
committed
chore: better naming header variables
1 parent 08cbf93 commit 854d94b

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

dotcom-rendering/src/components/TopBarSupport.importable.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const ReaderRevenueLinksRemote = ({
108108
},
109109
};
110110

111-
const headers =
111+
const fallbackHeaders =
112112
authStatus.kind === 'SignedIn'
113113
? getOptionsHeaders(authStatus).headers
114114
: undefined;
@@ -130,12 +130,12 @@ const ReaderRevenueLinksRemote = ({
130130
reportError(error, 'getAuthHeaders');
131131
return undefined;
132132
})
133-
.then((fallbackHeaders) =>
134-
// Fallback to fallbackHeaders if present, otherwise use real headers
133+
.then((headers) =>
134+
// Fallback to fallbackHeaders if headers are not present
135135
getHeader(
136136
contributionsServiceUrl,
137137
requestData,
138-
fallbackHeaders ?? headers,
138+
headers ?? fallbackHeaders,
139139
),
140140
)
141141
.then((response: ModuleDataResponse<HeaderProps>) => {

pnpm-lock.yaml

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)