Skip to content

Compile TypeScript error on payment-router.ts related to price when line_items is being pushed in the array #24

@dawda92

Description

@dawda92

I was facing an issue related to not defining a specific type for the prod when the line_items is being pushed:
Skærmbillede 2024-01-15 kl  20 50 26

If anyone else are facing the same issue, remember to set the type for the product, when you are iterating over the array of line_items:

filteredProducts.forEach((product: Product) => { line_items.push({ price: product.priceId!, quantity: 1, }) })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions