0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-06 05:42:40 +00:00

fixed published request

This commit is contained in:
Víctor Losada Hernández
2024-04-09 20:12:40 +02:00
parent 0e5c91733d
commit 9247967f93

View File

@@ -79,8 +79,7 @@ const errorIndex = (props)=>{
**Current Authors:** ${props.brew.authors?.map((author)=>{return `[${author}](/user/${author})`;}).join(', ') || 'Unable to list authors'}
${props.brew.published ? `[Click here to be redirected to the brew's share page.](/share/${props.brew.shareId})`:
'This brew is unpublished, therefore we cannot grant you its share page URL.'}`,
[Click here to be redirected to the brew's share page.](/share/${props.brew.shareId})`,
// User is not signed in; must be a user on the Authors List
'04' : dedent`
@@ -95,8 +94,7 @@ const errorIndex = (props)=>{
**Current Authors:** ${props.brew.authors?.map((author)=>{return `[${author}](/user/${author})`;}).join(', ') || 'Unable to list authors'}
${props.brew.published ? `[Click here to be redirected to the brew's share page.](/share/${props.brew.shareId})`:
'This brew is unpublished, therefore we cannot grant you its share page URL.'}`,
[Click here to be redirected to the brew's share page.](/share/${props.brew.shareId})`,
// Brew load error