Skip to content

Commit

Permalink
feat(github): Display toast as soon as the github request is sent
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Sep 11, 2024
1 parent c5231eb commit 5ad107a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/src/pages/actions/actionsOpenalexFeedback.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ export default function ActionsOpenalexFeedback({ allOpenalexCorrections }) {
};

const feedback = async () => {
toast({
autoDismissAfter: 5000,
description: 'Your correction(s) are currently submitted to the <a href="https://github.com/dataesr/openalex-affiliations/issues" target="_blank">Github repository</a>',
id: 'saveOpenAlex',
title: 'OpenAlex corrections submitted',
toastType: 'info',
});
try {
await sendGitHubIssue({ data: allOpenalexCorrections, email: userEmail });
toast({
Expand Down

0 comments on commit 5ad107a

Please sign in to comment.