Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
chore: silent ts error (need to fix this)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Jan 10, 2024
1 parent 6e9fc3d commit b41266e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/app/src/components/ListItemPromotion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export function ListItemPromotion({

return (
<ResourceListItem
// @ts-expect-error // TODO: I need to fix this
resource={resource}
isLoading={isLoading}
delayMs={delayMs}
Expand Down
4 changes: 3 additions & 1 deletion packages/app/src/components/PromotionForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ export function PromotionForm({
return (
<HookedForm
{...methods}
onSubmit={async (formValues) => {
onSubmit={async (formValues): Promise<void> => {
const resource = sdkClient[promotionConfig.type]
let promotion: Promotion

if (promotionId != null) {
// @ts-expect-error // TODO: I need to fix this
promotion = await resource.update({ id: promotionId, ...formValues })
} else {
// @ts-expect-error // TODO: I need to fix this
promotion = await resource.create(formValues)

await resource._disable(promotion.id)
Expand Down

0 comments on commit b41266e

Please sign in to comment.