Skip to content

Commit

Permalink
fix eslint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cpaczek committed Sep 23, 2022
1 parent f23e134 commit c4f2bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/submit-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module.exports = ({ strapi }) => ({
async index(ctx) {
let verification = {}
let formName = strapi.config.get('plugin.ezforms.enableFormName') ? ctx.request.body.formName : "form"
let formName = strapi.config.get('plugin.ezforms.enableFormName') ? ctx.request.body.formName : 'form'
// Checks if there is a captcha provider
if (!(strapi.config.get('plugin.ezforms.captchaProvider.name') === 'none') && (strapi.config.get('plugin.ezforms.captchaProvider.name'))) {
verification = await strapi.plugin('ezforms').service(strapi.config.get('plugin.ezforms.captchaProvider.name')).validate(ctx.request.body.token)
Expand Down

0 comments on commit c4f2bcc

Please sign in to comment.