margaritahumanitarian / helpafamily

Unnecessary return await function found JS-0111
Performance
Major
3 years ago3 years old
Redundant use of await on a return value
117}) {
118  const [handleSubmit, isPending] = useStripeSession();
119  const handleOnClick = async () =>
120    await handleSubmit({121      amount: actionCost,122      cause: cause,123    });124  return (
125    <div
126      className={`pt-5 ${