Skip to content
Snippets Groups Projects
Commit face6c25 authored by Arthur E. Jones's avatar Arthur E. Jones Committed by James Long
Browse files

style: apply prettier

parent dcf5379f
No related branches found
No related tags found
No related merge requests found
......@@ -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] : ' ';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment