Skip to content

Commit 3e1134c

Browse files
committed
refactor: compare bools to bools
1 parent 20b3e88 commit 3e1134c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/deploy/deploy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ export const deploy = async (options: OptionValues, command: BaseCommand) => {
841841
return triggerDeploy({ api, options, siteData, siteId })
842842
}
843843

844-
const deployToProduction = options.prod || (options.prodIfUnlocked && siteData.published_deploy?.locked !== true)
844+
const deployToProduction = options.prod || (options.prodIfUnlocked && !(siteData.published_deploy?.locked ?? false))
845845

846846
let results = {} as Awaited<ReturnType<typeof prepAndRunDeploy>>
847847

0 commit comments

Comments
 (0)