mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 14:12:40 +00:00
Don't save style tab if user never put anything in it
This commit is contained in:
@@ -20,10 +20,12 @@ const getGoodBrewTitle = (text)=>{
|
||||
};
|
||||
|
||||
const mergeBrewText = (text, style)=>{
|
||||
text = `\`\`\`css\n` +
|
||||
`${style}\n` +
|
||||
`\`\`\`\n\n` +
|
||||
`${text}`;
|
||||
if(typeof style !== 'undefined') {
|
||||
text = `\`\`\`css\n` +
|
||||
`${style}\n` +
|
||||
`\`\`\`\n\n` +
|
||||
`${text}`;
|
||||
}
|
||||
return text;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user