File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/clerk-js/src/ui/elements Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -100,8 +100,8 @@ export const SocialButtons = React.memo((props: SocialButtonsRootProps) => {
100100 MAX_STRATEGIES_PER_ROW ,
101101 lastAuthenticationStrategy ,
102102 ) ;
103- const strategiesLength = lastAuthenticationStrategyPresent ? strategies . length - 1 : strategies . length ;
104103 const strategyRowOneLength = strategyRows . at ( lastAuthenticationStrategyPresent ? 1 : 0 ) ?. length ?? 0 ;
104+ const remainingStrategiesLength = lastAuthenticationStrategyPresent ? strategies . length - 1 : strategies . length ;
105105 const shouldForceSingleColumnOnMobile = ! lastAuthenticationStrategyPresent && strategies . length === 2 ;
106106
107107 const preferBlockButtons =
@@ -171,7 +171,7 @@ export const SocialButtons = React.memo((props: SocialButtonsRootProps) => {
171171 >
172172 { row . map ( strategy => {
173173 const shouldShowPreText =
174- strategiesLength === SOCIAL_BUTTON_PRE_TEXT_THRESHOLD ||
174+ remainingStrategiesLength === SOCIAL_BUTTON_PRE_TEXT_THRESHOLD ||
175175 ( strategy === lastAuthenticationStrategy && row . length === 1 ) ;
176176
177177 const label = shouldShowPreText
You can’t perform that action at this time.
0 commit comments