Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
fix: make sure site doesn't get reloaded when adding a language
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKohler committed Apr 17, 2021
1 parent 9a7e181 commit 1ead533
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/components/add-language-section.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export default function AddLanguage({ allLanguages, onAdd, languages, pendingLan

const onLanguageSelect = (language) => { setLanguage(language); };

const onLanguageAdd = async () => {
const onLanguageAdd = async (event) => {
event.preventDefault();
setError('');

try {
Expand Down

0 comments on commit 1ead533

Please sign in to comment.