Skip to content

Commit

Permalink
🐛 Change ?. to && check
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Oct 13, 2020
1 parent 34bab5f commit 62476f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions post-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export const preProcess = async () => {
}
} catch (error) {}

if (config["status-website"]?.cname)
await writeFile(join(".", "__sapper__", "export", "CNAME"), config["status-website"]?.cname);
if (config["status-website"] && config["status-website"].cname)
await writeFile(join(".", "__sapper__", "export", "CNAME"), config["status-website"].cname);
await copyFile(
join(".", "__sapper__", "export", "service-worker-index.html"),
join(".", "__sapper__", "export", "404.html")
Expand Down

0 comments on commit 62476f7

Please sign in to comment.