Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/rest/components/RestAuth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function RestAuth({ progAccess, slug, operationTitle }: Props) {
// For those operations, we shouldn't display this component
if (!progAccess) return null
const { userToServerRest, serverToServer, fineGrainedPat, basicAuth = false } = progAccess
const noFineGrainedAcccess = !(userToServerRest || serverToServer || fineGrainedPat)
const noFineGrainedAccess = !(userToServerRest || serverToServer || fineGrainedPat)

const heading = basicAuth ? t('basic_auth_heading') : t('fine_grained_access')
const headingId = heading.replace('{{ RESTOperationTitle }}', operationTitle)
Expand All @@ -45,7 +45,7 @@ export function RestAuth({ progAccess, slug, operationTitle }: Props) {
<h3 className="mt-4 mb-3 pt-3 h4" id={authSlug}>
<a href={`#${authSlug}`}>{headingId}</a>
</h3>
{noFineGrainedAcccess ? (
{noFineGrainedAccess ? (
<NoFineGrainedAccess basicAuth={basicAuth} />
) : (
<FineGrainedAccess progAccess={progAccess} />
Expand Down