Skip to content

Commit

Permalink
remove unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
andracc committed Nov 12, 2024
1 parent 5baee3b commit 4b593ca
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/components/ProjectExport/ExportButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@ export default function ExportButton(props: ExportButtonProps): ReactElement {
const { t } = useTranslation();

async function exportProj(): Promise<void> {
await isFrontierNonempty(props.projectId).then(async (isNonempty) => {
if (isNonempty) {
await dispatch(asyncExportProject(props.projectId));
} else {
enqueueSnackbar(t("projectExport.cannotExportEmpty"));
}
});
await dispatch(asyncExportProject(props.projectId));
}

const exportResult = useAppSelector(
Expand Down

0 comments on commit 4b593ca

Please sign in to comment.