Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo fix for 'noFineGrainedAccess' #36000

Closed
wants to merge 1 commit into from
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
Loading