Skip to content

Commit 55ee6dc

Browse files
committed
rename
1 parent c4ef279 commit 55ee6dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/clerk-js/src/ui/elements/SocialButtons.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)