Skip to content

Commit

Permalink
Rename lang change function
Browse files Browse the repository at this point in the history
  • Loading branch information
whitep4nth3r committed Apr 11, 2021
1 parent 8a2312d commit 8346e9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 28,7 @@ export default function Home({ languages, languageKey, code, lines, contributors
setContributorsResult(newCode.contributors);
}

function handleButtonClick(newLang) {
function chooseLang(newLang) {
generateAndUpdate(newLang);
}

Expand Down Expand Up @@ -99,7 99,7 @@ export default function Home({ languages, languageKey, code, lines, contributors
className={`selector__button${selectedClass}`}
type="button"
key={key}
onClick={() => handleButtonClick(key)}
onClick={() => chooseLang(key)}
>
{value}
</button>
Expand Down

0 comments on commit 8346e9d

Please sign in to comment.