Skip to content

Commit 51f6070

Browse files
committed
fix: Assign default theme if none is selected
1 parent 7cebbc5 commit 51f6070

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/wizard/RecapBar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ export function FontSwitcher({ cssVariable, setData, data }) {
122122
}
123123
export default function RecapBar({ data, setData, onClickNext }) {
124124
const [menuIsOpen, setMenuIsOpen] = useState(false);
125-
const deployUrl = `https://app.netlify.com/start/deploy?repository=https://github.com/netlify-templates/nextjs-blog-theme#BLOG_NAME=${data.name}&BLOG_TITLE=${data.blogTitle}&BLOG_FOOTER_TEXT=${data.footerText}&BLOG_THEME=${data.theme}&BLOG_FONT_HEADINGS=${data["--font-primary"]}&BLOG_FONT_PARAGRAPHS=${data["--font-secondary"]}`;
125+
const blogTheme = data.theme || "default";
126+
const deployUrl = `https://app.netlify.com/start/deploy?repository=https://github.com/netlify-templates/nextjs-blog-theme#BLOG_NAME=${data.name}&BLOG_TITLE=${data.blogTitle}&BLOG_FOOTER_TEXT=${data.footerText}&BLOG_THEME=${blogTheme}&BLOG_FONT_HEADINGS=${data["--font-primary"]}&BLOG_FONT_PARAGRAPHS=${data["--font-secondary"]}`;
126127

127128
return (
128129
<div className="font-sans fixed bottom-4 z-index-10 w-full max-w-[56rem] left-2/4 transform -translate-x-2/4 ">

0 commit comments

Comments
 (0)