Skip to content

Commit

Permalink
Typo fix for 'noFineGrainedAccess'
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenalex836 authored Jan 20, 2025
1 parent c7d69c9 commit 196cf66
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 196cf66

Please sign in to comment.