Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
user more generic message to cover throttle=0 and throttle not set case
Browse files Browse the repository at this point in the history
  • Loading branch information
ylwu-amzn committed May 14, 2019
1 parent 6253953 commit 2523684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/utils/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const validateActionName = trigger => value => {

export const validateActionThrottle = action => value => {
if (_.get(action, 'throttle_enabled')) {
if (!value) return 'Need to set throttle value';
if (!value) return 'Throttle should be positive number';
else return validateInterval(value);
}
};
Expand Down

0 comments on commit 2523684

Please sign in to comment.