Skip to content

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceman03 committed Sep 14, 2024
1 parent 7cc2d64 commit 86c8b93
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/cms/src/admin/views/MerchProducts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,8 @@ const MerchProducts: AdminViewComponent = ({ user, canAccessAdmin }) => {
components: {
Heading: <div>Delete</div>,
renderCell: (data: Product) => (
// <Button onClick={() => handleDelete(data)}>Delete</Button>
<Button onClick={() => {
// Wrap async function call in an inline function
(async () => {
void (async () => {
await handleDelete(data);
})();
}}
Expand Down

0 comments on commit 86c8b93

Please sign in to comment.