fix: deepsource recommendations

This commit is contained in:
arc-alex
2023-12-12 15:06:16 +01:00
parent a750c04bad
commit fdee764c28
6 changed files with 67 additions and 68 deletions
@@ -66,9 +66,7 @@ export default function SheetsModal(props: SheetsModalProps) {
const handleFile = async (event: ChangeEvent<HTMLInputElement>) => {
const selectedFile = event?.target?.files?.[0];
if (!selectedFile) {
return;
} else {
if (selectedFile) {
await uploadSheetClientFile(selectedFile).catch((err) => {
console.error(err); //TODO: how to show this to the user
});
@@ -124,7 +122,7 @@ export default function SheetsModal(props: SheetsModalProps) {
};
const handlePushData = () => {
postPushSheet().then((_) => {});
postPushSheet();
};
const handleFinalise = async () => {