Fixing transaction history CSV download

please add jsdoc