Skip to content

Commit

Permalink
add documentation for version attr
Browse files Browse the repository at this point in the history
  • Loading branch information
domenicrosati committed Apr 17, 2020
1 parent 112c84e commit 2e7c877
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Options are passed to the component in the form of HTML Attributes:
| `client-id` | Y | Your Account identifier (this helps us associate analytics to your account) | `<manifold-plan-table client-id="284ablb7scfm8oxwz9wrxpt2q0jii">` |
| `base-url` | | The URL the buttons link to (plan ID & user selection will be appended to the end of the URL in a query string) | `<manifold-plan-table base-url="/checkout">` |
| `cta-text` | | Change the ”Getting Started” default text. | `<manifold-plan-table cta-text="Buy Now!">` |
| `version` | | The version of your product (omit for latest published product). Use `version="latest"` for the latest draft. | `<manifold-plan-table version="1">` |

## TypeScript + JSX

Expand Down
2 changes: 1 addition & 1 deletion src/components/manifold-plan-table/manifold-plan-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class ManifoldPlanTable {
async setupProduct(productID: string) {
const variables: ProductQueryVariables = {
id: productID,
latest: this.version === LATEST_VERSION_FLAG ? true : false,
latest: this.version === LATEST_VERSION_FLAG,
};
const res = await this.connection.graphqlFetch<ProductQuery>({ query, variables });
const { data } = res;
Expand Down

0 comments on commit 2e7c877

Please sign in to comment.