0
0
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:
Trevor Buckner
2024-12-26 19:12:34 -05:00
parent 9804c3933f
commit a2c4f73e7d

View File

@@ -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;