We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e57df8b commit 310935dCopy full SHA for 310935d
dotcom-rendering/src/components/TopBarMyAccount.tsx
@@ -262,9 +262,9 @@ export const TopBarMyAccount = ({
262
}: MyAccountProps) => {
263
const { renderingTarget } = useConfig();
264
265
- return (
266
- <>
267
- {authStatus.kind === 'SignedIn' ? (
+ switch (authStatus.kind) {
+ case 'SignedIn':
+ return (
268
<SignedInBraze
269
mmaUrl={mmaUrl}
270
idUrl={idUrl}
@@ -273,9 +273,10 @@ export const TopBarMyAccount = ({
273
authStatus={authStatus}
274
renderingTarget={renderingTarget}
275
/>
276
- ) : (
277
- <SignIn idUrl={idUrl} />
278
- )}
279
- </>
280
- );
+ );
+ case 'SignedOut':
+ return <SignIn idUrl={idUrl} />;
+ default:
+ return null;
281
+ }
282
};
0 commit comments