Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazeim committed Nov 29, 2023
1 parent cfbb030 commit 5e97c21
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/components/ApiReference/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,17 +397,12 @@ const ApiReference = ({

<ApiParamButton
type="submit"
disabled={
!(specialApiKey as string[]).includes(token) &&
(disabled || loading)
}
className={
`${styles.apiParamButton} ${
!(specialApiKey as string[]).includes(token) || disabled
disabled={!(specialApiKey as string[]).includes(token) && (disabled || loading)}
className={`${styles.apiParamButton} ${
!(specialApiKey as string[]).includes(token) || disabled
? styles.apiParamButtonDisabled
: ""
}`
}
}`}
>
{loading ? <LoadingCircle /> : "Test Live API"}
</ApiParamButton>
Expand Down

0 comments on commit 5e97c21

Please sign in to comment.