Skip to content

Commit

Permalink
Fix issue in Endpoints.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
AnuGayan committed Oct 24, 2024
1 parent ffdc8c4 commit 0768b3e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ function Endpoints(props) {
}
}
} else if (production.type === 'apikey') {
if ((production.apiKeyValue === null || production.apiKeyValue === '') &&
if ((production.apiKeyValue === null) &&
endpointConfig.production_endpoints) {
return {
isValid: false,
Expand Down Expand Up @@ -526,7 +526,7 @@ function Endpoints(props) {
}
}
} else if (sandbox.type === 'apikey') {
if ((sandbox.apiKeyValue === null || sandbox.apiKeyValue === '') &&
if ((sandbox.apiKeyValue === null) &&
endpointConfig.sandbox_endpoints) {
return {
isValid: false,
Expand Down

0 comments on commit 0768b3e

Please sign in to comment.