Skip to content

Commit

Permalink
fix bug with sonar analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
sikanderakbarali committed Mar 20, 2024
1 parent 79f5036 commit 8ecc49a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,14 @@ class App {
* @param {string} settings.cssSelector - CSS selector to get the container div
* @param {boolean} settings.enableTextResponse - Disables text responses from the form
*/
export default function (settings = {}) {
const defaultFunction = function nhsUserFeedback(settings = {}) {

Check failure on line 89 in src/index.js

View workflow job for this annotation

GitHub Actions / test

Expected indentation of 0 spaces but found 1
const settingsWithDefaults = {
cssSelector: '#nhsuk-user-feedback-form',
...settings,
};

const app = new App(settingsWithDefaults);
app.render();
}
};

export default defaultFunction;

0 comments on commit 8ecc49a

Please sign in to comment.