Skip to content

Commit

Permalink
Fix getInitialTheme method to get theme from localStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
arifszn committed Mar 20, 2022
1 parent da281df commit f409069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/utils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit f409069

Please sign in to comment.