Skip to content

Commit

Permalink
Cashlink data formatting: fallback to generic info when cashlink has …
Browse files Browse the repository at this point in the history
…no message
  • Loading branch information
sisou committed Dec 13, 2021
1 parent ec433ab commit 249be0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/TransactionListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export default defineComponent({
const { state: proxies$ } = useProxyStore();
const cashlinkAddress = isIncoming.value ? props.transaction.sender : props.transaction.recipient;
const hubCashlink = proxies$.hubCashlinks[cashlinkAddress];
return hubCashlink ? hubCashlink.message : '';
if (hubCashlink && hubCashlink.message) return hubCashlink.message;
}
if (swapData.value && !isCancelledSwap.value) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/modals/TransactionModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ export default defineComponent({
});
const data = computed(() => {
if (isCashlink.value) return hubCashlink.value ? hubCashlink.value.message : '';
if (hubCashlink.value && hubCashlink.value.message) return hubCashlink.value.message;
if (swapData.value && !isCancelledSwap.value) return '';
Expand Down

0 comments on commit 249be0b

Please sign in to comment.