diff --git a/frontend-react/src/components/common/WeaponImage.tsx b/frontend-react/src/components/common/WeaponImage.tsx index 190082a9c..0d5f62165 100644 --- a/frontend-react/src/components/common/WeaponImage.tsx +++ b/frontend-react/src/components/common/WeaponImage.tsx @@ -31,10 +31,11 @@ const WeaponImage: React.FC = ({ const wh = sizeWhMap[size] useEffect(() => { + if (!english_internal) return import( `../../assets/weapons/Wst_${english_internal[englishName]}.png` ).then((img) => setSrc(img.default)) - }, []) + }, [english_internal]) return ( <> diff --git a/frontend-react/src/components/root/App.tsx b/frontend-react/src/components/root/App.tsx index 085428c5b..d6bfbaa48 100644 --- a/frontend-react/src/components/root/App.tsx +++ b/frontend-react/src/components/root/App.tsx @@ -12,8 +12,6 @@ const App: React.FC = () => { const { colorMode } = useColorMode() const [themeColorFromStorage] = useLocalStorage("colorPreference") - console.log({ chakraTheme, colorMode }) - const themeColor = themeColorFromStorage ? themeColorFromStorage : colorMode === "light"