Skip to content

Commit

Permalink
Merge pull request #271 from chain4travel/suite
Browse files Browse the repository at this point in the history
change base URL for development
  • Loading branch information
Ysrbolles authored Nov 20, 2024
2 parents a9d834f + 9bce275 commit 7184506
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/helpers/partnersReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export enum partnersActions {
'TOGGLE_VALIDATORS',
'TOGGLE_ON_MESSENGER',
'UPDATE_BUSINESS_FIELDS_FROM_API',

}

export interface ActionType {
Expand Down Expand Up @@ -88,9 +87,10 @@ export const partnersReducer = (
case partnersActions.TOGGLE_CATEGORY:
const updatedBusinessField = state.businessField.map(group => {
if (group.category === action.payload) {
const isAllSelected = group.fields.every(field => field.active)
const updatedFields = group.fields.map(field => ({
...field,
active: !field.active,
active: isAllSelected ? false : true, // Toggle between all selected and all deselected
}))
return { ...group, fields: updatedFields }
}
Expand Down
2 changes: 1 addition & 1 deletion src/redux/services/partners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function getServiceName(fullName: unknown): string {
const getBaseUrl = () => {
const currentPath = typeof window !== 'undefined' ? window.location.hostname : ''
if (currentPath === 'localhost' || currentPath.includes('dev')) {
return BASE_URLS.prod
return BASE_URLS.dev
} else if (currentPath) {
return BASE_URLS.prod
} else {
Expand Down

0 comments on commit 7184506

Please sign in to comment.