Skip to content

Commit

Permalink
fix: If user look at the activity of the selected account, then in th…
Browse files Browse the repository at this point in the history
…e third step the view will break (#672)

Co-authored-by: Michele F. <michele-franchi@users.noreply.github.com>
  • Loading branch information
janmichek and michele-franchi authored Mar 12, 2024
1 parent 05822bf commit 72e2176
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/AccountActivityCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ const activityDescription = computed(() => {
return 'Internal transfer'
case 'Aex9TransferEvent':
return 'Transferred to'
case 'Aex141TransferEvent':
return 'Transferred to'
case 'InternalContractCallEvent':
return 'Internal call'
default:
Expand Down
3 changes: 2 additions & 1 deletion src/components/AccountActivityDataCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ const isActivityCell = computed(() => {
props.activity.type === 'NamePreclaimTxEvent' ||
props.activity.type === 'InternalContractCallEvent' ||
props.activity.type === 'InternalTransferEvent' ||
props.activity.type === 'Aex9TransferEvent') {
props.activity.type === 'Aex9TransferEvent' ||
props.activity.type === 'Aex141TransferEvent') {
return true
} else {
return false
Expand Down
24 changes: 24 additions & 0 deletions src/components/AccountActivityDataCellAex141TransferEvent.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<template>
<value-hash-ellipsed
:hash="activityPayload.recipientId"
:link-to="`/accounts/${activityPayload.recipientId}`"/>

<app-chip size="sm">
{{ activityPayload.tokenName }}
</app-chip>
</template>

<script setup>
import AppChip from '@/components/AppChip'
import ValueHashEllipsed from '@/components/ValueHashEllipsed'
const props = defineProps({
activity: {
type: Object,
required: true,
},
})
const activityPayload = computed(() => props.activity.payload)
</script>
2 changes: 2 additions & 0 deletions src/components/AccountActivityTypeCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ const activityType = computed(() => {
case 'Aex9TransferEvent':
return 'AEX-9'
case 'Aex141TransferEvent':
return 'AEX-141'
case 'InternalContractCallEvent':
if (
SH_DEX_CONTRACTS.includes(props.activity.payload.contractId)) {
Expand Down

0 comments on commit 72e2176

Please sign in to comment.