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

Commit

Permalink
Ajust JSON error message
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelhoun committed Oct 2, 2021
1 parent 47f8f31 commit efb233d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function App() {
} catch (error) {
console.error(error, "groups:", newGroups);
setError(
"Impossible de charger les groupes depuis le lien, veuillez les ajouter manuellement"
"Impossible de charger les groupes depuis le lien, essaie en copiant-collant directement le lien dans ton navigateur, ou ajoute les groupes manuellement"
);
}
}
Expand All @@ -49,6 +49,9 @@ function App() {
addGroup={(group) => {
console.info("Adding group", group);
setGroups((oldList) => ({ ...oldList, [group.id]: group.name }));
if (error) {
setError(false);
}
}}
/>
<hr />
Expand Down
1 change: 1 addition & 0 deletions src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,5 @@ footer {

.error {
color: red;
white-space: pre-wrap;
}

0 comments on commit efb233d

Please sign in to comment.