mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-25 01:02:47 +00:00
processShareId does not need useCallback()
This commit is contained in:
@@ -49,9 +49,9 @@ const SharePage = (props)=>{
|
||||
};
|
||||
}, []);
|
||||
|
||||
const processShareId = useCallback(()=>{
|
||||
const processShareId = ()=>{
|
||||
return brew.googleId && !brew.stubbed ? brew.googleId + brew.shareId : brew.shareId;
|
||||
}, [brew]);
|
||||
};
|
||||
|
||||
const renderEditLink = ()=>{
|
||||
if(!brew.editId) return null;
|
||||
|
||||
Reference in New Issue
Block a user