Skip to content

Commit

Permalink
chore: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
KenLSM committed Nov 8, 2023
1 parent 3058214 commit e30d4cc
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const submitEncryptModeForm = async (
const {
encryptedContent,
responseMetadata,
paymentProducts: _clientPaymentsProducts,
paymentProducts: dirtyPaymentsProducts,
} = encryptedPayload

// Checks if user is SPCP-authenticated before allowing submission
Expand Down Expand Up @@ -303,10 +303,7 @@ const submitEncryptModeForm = async (
form.payments_field?.enabled &&
form.payments_channel.channel === PaymentChannel.Stripe
) {
const paymentProducts = sanitisePaymentProducts(
form,
_clientPaymentsProducts,
)
const paymentProducts = sanitisePaymentProducts(form, dirtyPaymentsProducts)
return _createPaymentSubmission({
req,
res,
Expand Down

0 comments on commit e30d4cc

Please sign in to comment.