fix fulfillmentUrl in the history rener
This commit is contained in:
parent
5f68f060a6
commit
4fd80ee8e2
@ -508,7 +508,7 @@ function formatHistoryItem(historyItem: HistoryEvent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case "payment-sent": {
|
case "payment-sent": {
|
||||||
const url = historyItem.orderShortInfo.merchantBaseUrl;
|
const url = historyItem.orderShortInfo.fulfillmentUrl;
|
||||||
const { merchant, item } = parseSummary(
|
const { merchant, item } = parseSummary(
|
||||||
historyItem.orderShortInfo.summary
|
historyItem.orderShortInfo.summary
|
||||||
);
|
);
|
||||||
@ -519,7 +519,7 @@ function formatHistoryItem(historyItem: HistoryEvent) {
|
|||||||
const fulfillmentLinkElem = (
|
const fulfillmentLinkElem = (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<a
|
<a
|
||||||
href={historyItem.orderShortInfo.merchantBaseUrl}
|
href={url}
|
||||||
onClick={openTab(url)}
|
onClick={openTab(url)}
|
||||||
>
|
>
|
||||||
{item ? abbrev(item, 30) : null}
|
{item ? abbrev(item, 30) : null}
|
||||||
@ -540,14 +540,14 @@ function formatHistoryItem(historyItem: HistoryEvent) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
case "order-accepted": {
|
case "order-accepted": {
|
||||||
const url = historyItem.orderShortInfo.merchantBaseUrl;
|
const url = historyItem.orderShortInfo.fulfillmentUrl;
|
||||||
const { merchant, item } = parseSummary(
|
const { merchant, item } = parseSummary(
|
||||||
historyItem.orderShortInfo.summary
|
historyItem.orderShortInfo.summary
|
||||||
);
|
);
|
||||||
const fulfillmentLinkElem = (
|
const fulfillmentLinkElem = (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<a
|
<a
|
||||||
href={historyItem.orderShortInfo.merchantBaseUrl}
|
href={url}
|
||||||
onClick={openTab(url)}
|
onClick={openTab(url)}
|
||||||
>
|
>
|
||||||
{item ? abbrev(item, 40) : null}
|
{item ? abbrev(item, 40) : null}
|
||||||
|
Loading…
Reference in New Issue
Block a user