Skip to content

Commit

Permalink
Include placements in validation, and convert boolean before sending …
Browse files Browse the repository at this point in the history
…data.
  • Loading branch information
andrewtoups committed Aug 26, 2021
1 parent c8d918f commit 655078f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/components/relics/relics.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ define(['ko', 'paypal', 'api'], (ko, paypal, api) => {
self.readyToPay = ko.computed(() => {
return !!self.name() &&
!!self.email() &&
!!self.includePlacements() &&
self.valid() &&
self.verified() || self.verificationFailed()
});
Expand Down Expand Up @@ -149,7 +150,7 @@ define(['ko', 'paypal', 'api'], (ko, paypal, api) => {
let body = {
orderName: self.name(),
orderEmail: self.email(),
includePlacements: self.includePlacements(),
includePlacements: self.includePlacements() === 'true',
address: self.addressStr(self.address()),
correctionDenied: self.correctionDenied(),
validatedAddress: self.addressStr(self.validatedAddress()),
Expand Down

0 comments on commit 655078f

Please sign in to comment.