Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add download invoice button #655

Merged
merged 5 commits into from
Nov 19, 2024
Merged

Conversation

alexbeno
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Nov 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
saas-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 19, 2024 3:19pm
saas-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 19, 2024 3:19pm

const { rewardId } = useSinglePanelData<RewardDetailSidepanelData>(name) ?? {};
const { data: reward } = RewardReactQueryAdapter.client.useGetRewardId({
pathParams: { rewardId: rewardId ?? "" },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could default rewardId to an empty string

Comment on lines 84 to 87
billingProfileId: reward?.billingProfileId ?? "",
invoiceId: reward?.invoiceId ?? "",
},
options: { enabled: Boolean(reward?.invoiceId && reward?.billingProfileId) },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would make variables for billingProfileId and invoiceId

@alexbeno alexbeno merged commit a7fb7c3 into main Nov 19, 2024
4 checks passed
@alexbeno alexbeno deleted the b-2731-add-download-invoice-button branch November 19, 2024 15:18
@alexbeno alexbeno linked an issue Nov 20, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test issue
2 participants