瀏覽代碼

fix async method (#4605)

Feroze Mohideen 2 年之前
父節點
當前提交
9c32e7a43d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dashboard/src/main/home/add-on-dashboard/common/Settings.tsx

+ 1 - 1
dashboard/src/main/home/add-on-dashboard/common/Settings.tsx

@@ -43,7 +43,7 @@ const Settings: React.FC = () => {
     }
   };
 
-  const handleDeletionClick = async (): Promise<void> => {
+  const handleDeletionClick = (): void => {
     setCurrentOverlay({
       message: `Are you sure you want to delete ${addon.name.value}?`,
       onYes: handleDeletionSubmit,