Skip to content

Commit

Permalink
fix(BTC, DOGE, DASH): incorrect crypto address when normalizing trans…
Browse files Browse the repository at this point in the history
…action
  • Loading branch information
bludnic committed Jul 12, 2024
1 parent 36ad5b1 commit 40b161b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/transactions/BtcTransaction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ export default defineComponent({
const { t } = useI18n()
const cryptoKey = computed(() => props.crypto.toLowerCase())
const cryptoAddress = computed(() => store.state.btc.address)
const {
isFetching,
isError,
isSuccess,
data: transaction
} = useBtcTransferQuery(props.id, props.crypto)
} = useBtcTransferQuery(props.id, cryptoAddress)
const status = computed(() => {
if (isFetching.value) return TransactionStatus.PENDING
if (isError.value) return TransactionStatus.REJECTED
Expand All @@ -72,7 +73,6 @@ export default defineComponent({
return TransactionStatus.PENDING
})
const cryptoAddress = computed(() => store.state.btc.address)
const partnerCryptoAddress = usePartnerCryptoAddress(
cryptoAddress,
transaction.value.senderId,
Expand Down
4 changes: 2 additions & 2 deletions src/components/transactions/DashTransaction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ export default defineComponent({
const { t } = useI18n()
const cryptoKey = computed(() => props.crypto.toLowerCase())
const cryptoAddress = computed(() => store.state.dash.address)
const {
isFetching,
isError,
isSuccess,
data: transaction
} = useDashTransferQuery(props.id, props.crypto)
} = useDashTransferQuery(props.id, cryptoAddress)
const status = computed(() => {
if (isFetching.value) return TransactionStatus.PENDING
if (isError.value) return TransactionStatus.REJECTED
Expand All @@ -72,7 +73,6 @@ export default defineComponent({
return TransactionStatus.PENDING
})
const cryptoAddress = computed(() => store.state.dash.address)
const partnerCryptoAddress = usePartnerCryptoAddress(
cryptoAddress,
transaction.value.senderId,
Expand Down
4 changes: 2 additions & 2 deletions src/components/transactions/DogeTransaction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ export default defineComponent({
const { t } = useI18n()
const cryptoKey = computed(() => props.crypto.toLowerCase())
const cryptoAddress = computed(() => store.state.doge.address)
const {
isFetching,
isError,
isSuccess,
data: transaction
} = useDogeTransferQuery(props.id, props.crypto)
} = useDogeTransferQuery(props.id, cryptoAddress)
const status = computed(() => {
if (isFetching.value) return TransactionStatus.PENDING
if (isError.value) return TransactionStatus.REJECTED
Expand All @@ -72,7 +73,6 @@ export default defineComponent({
return TransactionStatus.PENDING
})
const cryptoAddress = computed(() => store.state.doge.address)
const partnerCryptoAddress = usePartnerCryptoAddress(
cryptoAddress,
transaction.value.senderId,
Expand Down

0 comments on commit 40b161b

Please sign in to comment.