Skip to content

Commit 367d673

Browse files
authored
support NIH account and RAS simultaneously
1 parent 2800043 commit 367d673

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/profile/external-identities/ExternalIdentities.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ type ExternalIdentitiesProps = {
1515
export const ExternalIdentities = (props: ExternalIdentitiesProps): ReactNode => {
1616
const { queryParams } = props;
1717
const providers = (getConfig().externalCreds?.providers || []) as OAuth2ProviderKey[];
18-
const hasRas = providers.includes('ras');
1918
const filteredProviders = providers.filter(
2019
(p: any) =>
2120
(p !== 'github' && p !== 'sage') ||
@@ -25,7 +24,7 @@ export const ExternalIdentities = (props: ExternalIdentitiesProps): ReactNode =>
2524

2625
return (
2726
<PageBox role='main' style={{ flexGrow: 1 }} variant={PageBoxVariants.light}>
28-
{!hasRas && <NihAccount nihToken={queryParams?.['nih-username-token']} />}
27+
<NihAccount nihToken={queryParams?.['nih-username-token']} />
2928
{filteredProviders.map((providerKey: OAuth2ProviderKey) => (
3029
<OAuth2Account
3130
key={`oauth2link-${providerKey}`}

0 commit comments

Comments
 (0)