refactor: improve async handling

This commit is contained in:
Carlos Valente
2025-02-15 14:05:53 +01:00
committed by Carlos Valente
parent c65761448d
commit 891bda6661
8 changed files with 88 additions and 87 deletions
@@ -55,15 +55,14 @@ export default function GSheetSetup(props: GSheetSetupProps) {
setLoading('');
};
const handleCancelFlow = async () => {
const handleCancelFlow = () => {
onCancel();
};
/**
* Gets file from input
* @param event
*/
const handleClientSecret = async (event: ChangeEvent<HTMLInputElement>) => {
const handleClientSecret = (event: ChangeEvent<HTMLInputElement>) => {
if (!event.target.files?.length) {
return;
}