Skip to content

Commit 249be0b

Browse files
committed
Cashlink data formatting: fallback to generic info when cashlink has no message
1 parent ec433ab commit 249be0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/TransactionListItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export default defineComponent({
160160
const { state: proxies$ } = useProxyStore();
161161
const cashlinkAddress = isIncoming.value ? props.transaction.sender : props.transaction.recipient;
162162
const hubCashlink = proxies$.hubCashlinks[cashlinkAddress];
163-
return hubCashlink ? hubCashlink.message : '';
163+
if (hubCashlink && hubCashlink.message) return hubCashlink.message;
164164
}
165165
166166
if (swapData.value && !isCancelledSwap.value) {

src/components/modals/TransactionModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ export default defineComponent({
466466
});
467467
468468
const data = computed(() => {
469-
if (isCashlink.value) return hubCashlink.value ? hubCashlink.value.message : '';
469+
if (hubCashlink.value && hubCashlink.value.message) return hubCashlink.value.message;
470470
471471
if (swapData.value && !isCancelledSwap.value) return '';
472472

0 commit comments

Comments
 (0)