Skip to content

Commit

Permalink
Rename route callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Copons authored and Xavier Lozano Carreras committed Feb 14, 2024
1 parent 67a15fb commit 3a7f0fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/my-sites/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ export function selectSiteIfLoggedIn( context, next ) {
* If the section has an "all sites" view to delay the site selection,
* only handle the site selection with 0 or 1 sites.
*/
export function selectSiteIfLoggedInWithOneSite( context, next ) {
export function selectSiteOrSkipIfLoggedInWithMultipleSites( context, next ) {
const state = context.store.getState();
const isLoggedIn = isUserLoggedIn( state );
const siteCount = getCurrentUserSiteCount( state );
Expand Down
4 changes: 2 additions & 2 deletions client/my-sites/theme/index.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { getLanguageRouteParam } from '@automattic/i18n-utils';
import { translate } from 'i18n-calypso';
import { makeLayout, redirectWithoutLocaleParamIfLoggedIn } from 'calypso/controller';
import {
selectSiteIfLoggedInWithOneSite,
selectSiteOrSkipIfLoggedInWithMultipleSites,
redirectToLoginIfSiteRequested,
} from 'calypso/my-sites/controller';
import { getTheme } from 'calypso/state/themes/selectors';
Expand Down Expand Up @@ -31,7 +31,7 @@ export default function ( router ) {
redirectWithoutLocaleParamIfLoggedIn,
redirectToLoginIfSiteRequested,
setTitleIfThemeExisted,
selectSiteIfLoggedInWithOneSite,
selectSiteOrSkipIfLoggedInWithMultipleSites,
fetchThemeDetailsData,
details,
makeLayout
Expand Down
4 changes: 2 additions & 2 deletions client/my-sites/themes/index.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from 'calypso/controller';
import {
navigation,
selectSiteIfLoggedInWithOneSite,
selectSiteOrSkipIfLoggedInWithMultipleSites,
siteSelection,
sites,
hideNavigationIfLoggedInWithNoSites,
Expand Down Expand Up @@ -73,7 +73,7 @@ export default function ( router ) {
routesWithoutSites,
redirectWithoutLocaleParamIfLoggedIn,
fetchAndValidateVerticalsAndFilters,
selectSiteIfLoggedInWithOneSite,
selectSiteOrSkipIfLoggedInWithMultipleSites,
renderThemes,
hideNavigationIfLoggedInWithNoSites,
addNavigationIfLoggedIn,
Expand Down

0 comments on commit 3a7f0fe

Please sign in to comment.