Skip to content
This repository was archived by the owner on May 7, 2021. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
b138d7e
Minor copy change (typo) (#1639)
anikbrazeau Mar 6, 2020
9ec975f
extract data from formidable manually (#1641)
sastels Mar 9, 2020
53305eb
fix: upgrade mongodb from 3.5.2 to 3.5.3 (#1632)
snyk-bot Mar 9, 2020
247b48d
fix: upgrade react-scripts from 3.3.1 to 3.4.0 (#1642)
snyk-bot Mar 9, 2020
8245e28
Fix for Logs in another Azure Subscription (#1619)
davidheerema Mar 10, 2020
1a64679
Updating IMAGE_NAME reference (#1597)
davidheerema Mar 10, 2020
2a493d4
change GNCC to GNC3 (#1655)
sastels Mar 10, 2020
edc2c2c
use redirect for equifax links (#1651)
sastels Mar 10, 2020
c79a405
clear file input after alert (#1662)
sastels Mar 12, 2020
407146d
fix keyboard nav (#1660)
sastels Mar 12, 2020
3087d4d
add moneyLost.methodOther field to analyst report (#1647)
sastels Mar 13, 2020
ba03823
more detailed p and text stories (#1643)
amazingphilippe Mar 13, 2020
6e4b252
added stuff to sb docs (#1671)
amazingphilippe Mar 13, 2020
a9965b6
added getting started page to storybook (#1661)
amazingphilippe Mar 13, 2020
bd50ec2
FIX CORS for HTTPS (#1665) (#1669)
Mar 13, 2020
bfc0fe0
clean up logging a bit (#1663)
sastels Mar 13, 2020
7fccfd0
tweak skiplink style (#1658)
sastels Mar 14, 2020
2513237
fix target area for upload button (#1653)
amazingphilippe Mar 16, 2020
487c11d
change "go back" button's height to the same height as "cancel report…
DianeLiu2019 Mar 16, 2020
388dbad
added Messages component. (#1644)
amazingphilippe Mar 16, 2020
d23fabe
fix: upgrade async from 3.1.1 to 3.2.0 (#1680)
snyk-bot Mar 17, 2020
0af1e24
Reports a day counter (#1664)
kevinyang06 Mar 17, 2020
19ba926
Form validation - bump (#1510)
amazingphilippe Mar 17, 2020
20a0a1d
added helmet in server.js (#1674)
kevinyang06 Mar 17, 2020
b5b5dc8
Combine analyst emails (#1628)
sastels Mar 17, 2020
13ce1c7
Prod version number (#1656)
sastels Mar 17, 2020
01261ba
Fixed Field, added container and layout to sb (#1675)
amazingphilippe Mar 18, 2020
c9daa1a
Get email addresses from ldap query (#1682)
sastels Mar 18, 2020
353773e
restrict file number and size on server (#1648)
sastels Mar 18, 2020
3781e1e
remove submit button if already submitted (#1683)
sastels Mar 18, 2020
cd46e37
Fix for Continuous Deployment (#1690)
davidheerema Mar 18, 2020
9ddc583
Validation for location fields (#1689)
kevinyang06 Mar 19, 2020
9650471
cypress pack initial commit (#1247)
khalidelaggan Mar 19, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add moneyLost.methodOther field to analyst report (#1647)
  • Loading branch information
sastels authored Mar 13, 2020
commit 3087d4d1a5330651e5732ee057a8daa147ff068f
10 changes: 9 additions & 1 deletion f2/src/utils/formatAnalystEmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,16 @@ const formatSuspectDetails = data => {
}

const formatFinancialTransactions = data => {
const paymentString = data.moneyLost.methodPayment
const methods =
data.moneyLost.methodOther && data.moneyLost.methodOther.length > 0
? data.moneyLost.methodPayment.concat([data.moneyLost.methodOther])
: data.moneyLost.methodPayment

const paymentString = methods
.filter(method => method !== 'methodPayment.other')
.map(method => method.replace('methodPayment.', ''))
.join(', ')

const transactionDate = formatDate(
data.moneyLost.transactionDay,
data.moneyLost.transactionMonth,
Expand All @@ -177,6 +184,7 @@ const formatFinancialTransactions = data => {
formatLine('Method of payment: ', paymentString) +
formatLine('Transaction date: ', transactionDate)

delete data.moneyLost.methodOther
delete data.moneyLost.methodPayment
delete data.moneyLost.demandedMoney
delete data.moneyLost.moneyTaken
Expand Down