Skip to content

Commit

Permalink
UIBULKED-42: Fix success banner (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
UladzislauKutarkin authored Mar 4, 2022
1 parent 9cec793 commit be6c260
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export const Preview = ({ id, title }) => {
});

useEffect(() => {
if (errors?.length && data?.progress) {
setProcessedRecords(data.progress.total - errors.length);
if (data?.progress) {
setProcessedRecords(data.progress.total - (errors?.length || 0));
}
}, [errors, data?.progress]);

Expand Down

0 comments on commit be6c260

Please sign in to comment.