From 660abf3cf4a687d71cdaf7f1e0ed940a645f797c Mon Sep 17 00:00:00 2001 From: Expand-sys Date: Tue, 10 Jan 2023 10:27:26 +1100 Subject: [PATCH] fix wording.............. --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 3996130..027b814 100644 --- a/index.js +++ b/index.js @@ -197,16 +197,16 @@ fastify.get( log.reverse() for(i = 0; i < log.length; i++){ - + if(log[i].amount > 0){ let absol = Math.abs(log[i].amount) let date = new Date(log[i].time * 1000) - transactionlog.push(`You sent ${log[i].counterparty} ${absol} at ${date}`); + transactionlog.push(`${log[i].counterparty} sent you ${absol} at ${date}`); } else { let date = new Date(log[i].time * 1000) let absol = Math.abs(log[i].amount) - transactionlog.push(`${log[i].counterparty} sent you ${absol} at ${date}`); + transactionlog.push(`You sent ${log[i].counterparty} ${absol} at ${date}`); } }