diff --git a/src/actions/CategoriesActions.ts b/src/actions/CategoriesActions.ts index a951e69169b..85514cbd20d 100644 --- a/src/actions/CategoriesActions.ts +++ b/src/actions/CategoriesActions.ts @@ -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: {