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 0768b3e commit 68c1bcd
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,7 @@ function Endpoints(props) {
}
}
} else if (production.type === 'apikey') {
if ((production.apiKeyValue === null) &&
endpointConfig.production_endpoints) {
if (production.apiKeyValue === null && endpointConfig.production_endpoints) {
return {
isValid: false,
message: intl.formatMessage({
Expand Down Expand Up @@ -526,8 +525,7 @@ function Endpoints(props) {
}
}
} else if (sandbox.type === 'apikey') {
if ((sandbox.apiKeyValue === null) &&
endpointConfig.sandbox_endpoints) {
if (sandbox.apiKeyValue === null && endpointConfig.sandbox_endpoints) {
return {
isValid: false,
message: intl.formatMessage({
Expand Down

0 comments on commit 68c1bcd

Please sign in to comment.