mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-01 13:02:43 +00:00
allow for null error instead of undefined
This commit is contained in:
@@ -22,7 +22,7 @@ const UserPage = (props)=>{
|
|||||||
...props
|
...props
|
||||||
};
|
};
|
||||||
|
|
||||||
const [currentError, setCurrentError] = useState(error);
|
const [currentError, setCurrentError] = useState(error || null);
|
||||||
|
|
||||||
const usernameWithS = username + (username.endsWith('s') ? `’` : `’s`);
|
const usernameWithS = username + (username.endsWith('s') ? `’` : `’s`);
|
||||||
const groupedBrews = _.groupBy(brews, (brew)=>brew.published ? 'published' : 'private');
|
const groupedBrews = _.groupBy(brews, (brew)=>brew.published ? 'published' : 'private');
|
||||||
|
|||||||
Reference in New Issue
Block a user