Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

Commit fc5e7b0

Browse files
committed
Merge pull request #2552 from darkdarkdragon/develop-RT-3466
[FEATURE] Export exchange transactions (RT-3466)
2 parents a543a96 + be46c3a commit fc5e7b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/js/tabs/history.controller.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,15 @@ HistoryTab.prototype.angular = function (module) {
349349
// Payment (Sent / Received)
350350
if (transType === 'sent') sent = true;
351351
else if (transType === 'received') sent = false;
352+
else if (transType === 'exchange') sent = null;
352353
else continue; // unrecognised payment type
353354

354355
linePayment.TransType = capFirst(transType, true) + ' ' + capFirst(type, false);
355356

356-
if (sent) {
357+
if (sent === null) {
358+
linePayment.TransType = capFirst(transType, true);
359+
}
360+
else if (sent) {
357361
// If sent, counterparty is Address To
358362
linePayment.ToAddr = rippleName(transaction.counterparty);
359363
linePayment.FromAddr = rippleName(id.account);

0 commit comments

Comments
 (0)