Skip to content

Commit 1b4e2c3

Browse files
committed
fix: hard-coded key on clearLocalCache
1 parent 2fb6325 commit 1b4e2c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GZCTF/ClientApp/src/utils/useConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export const localCacheProvider = () => {
119119

120120
export const clearLocalCache = () => {
121121
window.removeEventListener('beforeunload', saveCache, true)
122-
localStorage.removeItem('gzctf-cache')
122+
localStorage.removeItem(cacheKey)
123123
cacheMap.clear()
124124
window.location.reload()
125125
}

0 commit comments

Comments
 (0)