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({ ...@@ -10,7 +10,6 @@ export function isInAmpMode({
} }
export function useAmp() { export function useAmp() {
const ampState = React.useContext(AmpStateContext) // Don't assign the context value to a variable to save bytes
// un-comment below to not be considered AMP in dirty mode return isInAmpMode(React.useContext(AmpStateContext))
return isInAmpMode(ampState) // && ampMode.hasQuery
} }
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