Skip to content

Commit

Permalink
fix: check if environment is undefined when setting payment gateway…
Browse files Browse the repository at this point in the history
… label
  • Loading branch information
leomp12 authored Aug 29, 2023
1 parent 8142721 commit 3719a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/routes/ecom/modules/list-payments.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ exports.post = ({ appSdk }, req, res) => {
code: 'banking_billet',
name: 'Boleto Bancário'
},
label: `Boleto Bancário${appData.envoriment !== 'produção' ? ` - ${appData.envoriment}` : ''}`,
label: `Boleto Bancário${appData.envoriment && appData.envoriment !== 'produção' ? ` - ${appData.envoriment}` : ''}`,
expiration_date: appData.expiration_date || 7
}

Expand Down

0 comments on commit 3719a55

Please sign in to comment.