Skip to content

Commit

Permalink
fix: unintended inclusion of woocommerce-payments production flow in …
Browse files Browse the repository at this point in the history
…passwordless feature (#95023)
  • Loading branch information
rjchow authored Sep 30, 2024
1 parent 6576491 commit 7e593ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type { AppState } from 'calypso/types';
* @returns {?boolean} Whether the user reached Calypso via the WooCommerce Core Profiler flow
*/
export const isWooCommerceCoreProfilerFlow = ( state: AppState ): boolean => {
const allowedFrom = [ 'woocommerce-core-profiler', 'woocommerce-payments' ];
const allowedFrom = [ 'woocommerce-core-profiler' ];
return (
allowedFrom.includes( get( getInitialQueryArguments( state ), 'from' ) as string ) ||
allowedFrom.includes( get( getCurrentQueryArguments( state ), 'from' ) as string ) ||
Expand Down

0 comments on commit 7e593ec

Please sign in to comment.