Skip to content

Commit

Permalink
Cast to boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
mmtr committed Oct 24, 2024
1 parent 550b909 commit 0bbb186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/landing/stepper/utils/flow-redirect-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const REMOVED_TAILORED_FLOWS = [
];

export const isRemovedFlow = ( flowToCheck ) =>
REMOVED_TAILORED_FLOWS.find( ( { flow } ) => flow === flowToCheck );
!! REMOVED_TAILORED_FLOWS.find( ( { flow } ) => flow === flowToCheck );

// Regex pattern for the optional language code in the format xx or xx-yy
const langPattern = '(?:/([a-z]{2}(?:-[a-z]{2})?))?/?$';
Expand Down

0 comments on commit 0bbb186

Please sign in to comment.