Skip to content

Commit

Permalink
Update the function name.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne committed Aug 23, 2024
1 parent 88aed3e commit 2b0e567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions settings/src/components/first-time/congratulations.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function Congratulations() {
user: { webAuthnEnabled, totpEnabled },
} = useContext( GlobalContext );

const getAuthenticationMethod = () => {
const getAuthSuggestion = () => {
if ( webAuthnEnabled && totpEnabled ) {
return null;
}
Expand Down Expand Up @@ -68,7 +68,7 @@ export default function Congratulations() {
to guarantee you always have access to your account.
</p>

{ getAuthenticationMethod() }
{ getAuthSuggestion() }

<div className="wporg-2fa__submit-actions">
<Button
Expand Down

0 comments on commit 2b0e567

Please sign in to comment.