Skip to content

Commit

Permalink
fixup! Upgrade edge-core-js to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
paullinator committed Dec 22, 2023
1 parent bc6964e commit 9f56e43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actions/CategoriesActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,9 @@ export const getTxActionDisplayInfo = (
case 'swapOrderFill': {
// Determine if the swap destination was to a different asset or if the
// swap source was from a different asset.
const txSrcSameAsset = action.sourceAsset.tokenId === tokenId && action.sourceAsset.pluginId === wallet.currencyInfo.pluginId
const txSrcSameAsset = action.fromAsset.tokenId === tokenId && action.fromAsset.pluginId === wallet.currencyInfo.pluginId
const toFromStr = txSrcSameAsset ? lstrings.transaction_details_swap_to_subcat_1s : lstrings.transaction_details_swap_from_subcat_1s
const otherAsset = txSrcSameAsset ? action.destAsset : action.sourceAsset
const otherAsset = txSrcSameAsset ? action.toAsset : action.fromAsset

return {
splitCategory: {
Expand Down

0 comments on commit 9f56e43

Please sign in to comment.