style: apply prettier

This commit is contained in:
Arthur E. Jones 2022-07-03 10:59:06 -05:00 committed by James Long
parent dcf5379f49
commit face6c254d

View file

@ -351,10 +351,7 @@ function DateFormatSelect({
// try to figure out what delimiter the date is using, and default
// to space if we can't figure it out.
let delimiter = '-';
if (
transactions.length > 0 &&
(fieldMappings && fieldMappings.date != null)
) {
if (transactions.length > 0 && fieldMappings && fieldMappings.date != null) {
let date = transactions[0][fieldMappings.date];
let m = date && date.match(/[/.,-/\\]/);
delimiter = m ? m[0] : ' ';