From cfea5f3340bb1f0fbea3580a6a19294f18db63f2 Mon Sep 17 00:00:00 2001 From: Derick M <58572875+TurtIeSocks@users.noreply.github.com> Date: Sat, 25 Nov 2023 11:44:18 -0500 Subject: [PATCH] Update useRefresh.js --- src/hooks/useRefresh.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hooks/useRefresh.js b/src/hooks/useRefresh.js index fc48b043c..2253c2dd3 100644 --- a/src/hooks/useRefresh.js +++ b/src/hooks/useRefresh.js @@ -38,9 +38,10 @@ export default function useRefresh() { const { icons: userIcons } = useStore.getState() const existing = useStatic.getState().Icons const Icons = existing ?? new UIcons(icons, masterfile.questRewardTypes) - if (Icons) { + + if (!existing) { Icons.build(icons.styles) - if (icons.defaultIcons && !existing) { + if (icons.defaultIcons) { Icons.setSelection(icons.defaultIcons) } if (Icons.checkValid(userIcons)) {