Skip to content

Commit

Permalink
var name
Browse files Browse the repository at this point in the history
  • Loading branch information
knod committed Dec 2, 2018
1 parent ca70a46 commit 2e05023
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/forms/cashflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ class CashFlowInputsRow extends Component {
cashFlowStoreValidator = (max) => {
return (str) => {
if (!isNonNegNumber(str)) {
let message = `That number doesn't look right`,
numPeriods = str.match(PERIODS_REGEX) || [];
let message = `That number doesn't look right`,
periods = str.match(PERIODS_REGEX) || [];

// Have a more detailed message if possible
if (numPeriods.length > 1) {
if (periods.length > 1) {
message = `The number should only have one decimal point`;
}

Expand Down

0 comments on commit 2e05023

Please sign in to comment.