Remove extra variable (#8329)
This commit is contained in:
parent
36aabe05a2
commit
35e7b21df1
1 changed files with 2 additions and 3 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue