Skip to content

Commit

Permalink
fix: Fix Unexpected token '?' error
Browse files Browse the repository at this point in the history
A simple fix to resolve the Unexpected token '?' error when trying to
run the next project.

closes #14
  • Loading branch information
JLucasCAmorim authored and trezy committed Nov 19, 2021
1 parent 246c2a4 commit 602537a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/buildCSPHeaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const devDirectives = {
}

function getCSPDirective(value, defaultValue) {
return [value ?? defaultValue].flat()
return [value || defaultValue].flat()
}

module.exports = function buildCSPHeaders(options = {}) {
Expand Down

0 comments on commit 602537a

Please sign in to comment.