diff options
author | Marcos Gutierrez <gmarcos87@gmail.com> | 2020-01-31 11:22:13 -0300 |
---|---|---|
committer | Marcos Gutierrez <gmarcos87@gmail.com> | 2020-01-31 11:22:13 -0300 |
commit | 4fd80ee8e26f4d4b880df9736c0257456259eb9c (patch) | |
tree | 35214bfe73607164ee374a67ecc36e45239aefc0 /src/webex | |
parent | 5f68f060a67ad36b87a25ca5d182c6f2dd9eb450 (diff) |
fix fulfillmentUrl in the history rener
Diffstat (limited to 'src/webex')
-rw-r--r-- | src/webex/pages/popup.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/webex/pages/popup.tsx b/src/webex/pages/popup.tsx index f873414a1..44f45f9db 100644 --- a/src/webex/pages/popup.tsx +++ b/src/webex/pages/popup.tsx @@ -508,7 +508,7 @@ function formatHistoryItem(historyItem: HistoryEvent) { } case "payment-sent": { - const url = historyItem.orderShortInfo.merchantBaseUrl; + const url = historyItem.orderShortInfo.fulfillmentUrl; const { merchant, item } = parseSummary( historyItem.orderShortInfo.summary ); @@ -519,7 +519,7 @@ function formatHistoryItem(historyItem: HistoryEvent) { const fulfillmentLinkElem = ( <Fragment> <a - href={historyItem.orderShortInfo.merchantBaseUrl} + href={url} onClick={openTab(url)} > {item ? abbrev(item, 30) : null} @@ -540,14 +540,14 @@ function formatHistoryItem(historyItem: HistoryEvent) { ); } case "order-accepted": { - const url = historyItem.orderShortInfo.merchantBaseUrl; + const url = historyItem.orderShortInfo.fulfillmentUrl; const { merchant, item } = parseSummary( historyItem.orderShortInfo.summary ); const fulfillmentLinkElem = ( <Fragment> <a - href={historyItem.orderShortInfo.merchantBaseUrl} + href={url} onClick={openTab(url)} > {item ? abbrev(item, 40) : null} |