mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
fix: Download invoice pdf of the payment link page
This commit is contained in:
@@ -33,7 +33,11 @@ export function PaymentPortal() {
|
||||
const handleInvoiceDownloadBtnClick = () => {
|
||||
generatePaymentLinkInvoice({ paymentLinkId: linkId })
|
||||
.then((data) => {
|
||||
downloadFile(data, `Invoice ${sharableLinkMeta?.invoiceNo}.pdf`);
|
||||
downloadFile(
|
||||
data,
|
||||
`Invoice ${sharableLinkMeta?.invoiceNo}`,
|
||||
'application/pdf',
|
||||
);
|
||||
})
|
||||
.catch(() => {
|
||||
AppToaster.show({
|
||||
|
||||
Reference in New Issue
Block a user