Skip to content

Commit

Permalink
add check for new offer and tell user
Browse files Browse the repository at this point in the history
  • Loading branch information
jdungan committed Oct 30, 2016
1 parent da2e81f commit b30be93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion static/js/widget-app.js
Expand Up @@ -56,7 +56,11 @@ labelDiff = function(type, $from_elem, $to_elem){
if (diff === 0 ){
confirmTemplate=["Your offer did not change."]
} else if (diff > 0 ) {
confirmTemplate = ["Your offer increased. $",diff," will be authorized your credit card."]
if (original_value === "") {
confirmTemplate = ["This is a new offer. $",diff," will be authorized on your credit card."]
} else {
confirmTemplate = ["Your offer increased. $",diff," will be added to your your credit card authorization."]
}
} else if (diff < 0) {
$('#submitForm').hide()
confirmTemplate = ["Sorry, you can't decrease your offer."]
Expand Down

0 comments on commit b30be93

Please sign in to comment.