Fix getInitialTheme method to get theme from localStorage

This commit is contained in:
Ariful Alam 2022-03-21 02:11:39 +06:00
parent da281dfc80
commit f409069210

View File

@ -9,7 +9,7 @@ export const getInitialTheme = () => {
if (
!(localStorage.getItem('gitprofile-theme') === null) &&
config.themeConfig.themes.includes('gitprofile-theme')
config.themeConfig.themes.includes(localStorage.getItem('gitprofile-theme'))
) {
let theme = localStorage.getItem('gitprofile-theme');