uselotus / lotus

File .deepsource.toml not found in the default branch of the repository root. Please refer to the docs.

Invalid async keyword JS-0376
Anti-pattern
Minor
a year agoa year old
Async arrow function 'getOrganizationSettings' has no 'await' expression
 26  const [currentOrganizationSetting, setCurrentOrganizationSetting] =
 27    useState<OrganizationSettings>();
 28
 29  const getOrganizationSettings = async (): Promise<OrganizationSettings[]> => 30    Stripe.getOrganizationSettings({ setting_group: "stripe" });
 31
 32  const { error, data, isLoading } = useQuery<OrganizationSettings[]>(
Async arrow function 'fetchSessionInfo' has no 'await' expression
29  const navigate = useNavigate();
30  const { pathname } = useLocation();
31
32  const fetchSessionInfo = async (): Promise<{ isAuthenticated: boolean }> =>33    Authentication.getSession()
34      .then((res) => {
35        return res;