fixed closeNav function throwing an error
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
This commit is contained in:
@@ -3,9 +3,10 @@ export const setTitle = (title) => {
|
||||
}
|
||||
|
||||
export const closeNav = (navSelector) => {
|
||||
const nav = document.querySelector(navSelector)
|
||||
if (nav.classList.contains('show'))
|
||||
nav.classList.remove('show')
|
||||
const nav = document.getElementById(navSelector)
|
||||
if (nav)
|
||||
if (nav.classList.contains('show'))
|
||||
nav.classList.remove('show')
|
||||
}
|
||||
|
||||
export const GetWinLoss = (matchResult, teamId) => {
|
||||
|
Reference in New Issue
Block a user