Skip to content

Commit

Permalink
Update useRefresh.js
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Nov 25, 2023
1 parent 829057c commit cfea5f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hooks/useRefresh.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit cfea5f3

Please sign in to comment.