Commit 35e7b21d authored by Tim Neutkens's avatar Tim Neutkens Committed by Joe Haddad

Remove extra variable (#8329)

parent 36aabe05
......@@ -10,7 +10,6 @@ export function isInAmpMode({
}
export function useAmp() {
const ampState = React.useContext(AmpStateContext)
// un-comment below to not be considered AMP in dirty mode
return isInAmpMode(ampState) // && ampMode.hasQuery
// Don't assign the context value to a variable to save bytes
return isInAmpMode(React.useContext(AmpStateContext))
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment