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 13, 2024
1 parent c8ab473 commit 3bad8ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/cms/src/admin/views/MerchProducts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const MerchProducts: AdminViewComponent = ({ user, canAccessAdmin }) => {
useEffect(() => {
const fetchProducts = async () => {
try {
// eslint-disable-next-line @typescript-eslint/no-misused-promises
const products: Product[] = await ProductsApi.getProducts();
setData(products);
} catch (error) {
Expand Down Expand Up @@ -94,8 +93,8 @@ const MerchProducts: AdminViewComponent = ({ user, canAccessAdmin }) => {
accessor: "delete",
components: {
Heading: <div>Delete</div>,
// eslint-disable-next-line @typescript-eslint/no-misused-promises
renderCell: (data: Product) => (
// eslint-disable-next-line @typescript-eslint/no-floating-promises
<Button onClick={() => handleDelete(data)}>Delete</Button>

Check failure on line 98 in apps/cms/src/admin/views/MerchProducts.tsx

View workflow job for this annotation

GitHub Actions / Lint, Build and Test

Promise-returning function provided to attribute where a void return was expected
),
},
Expand Down

0 comments on commit 3bad8ee

Please sign in to comment.