Skip to content

Commit

Permalink
Merge pull request #5193 from planetarium/bugfix/not-updated-quest
Browse files Browse the repository at this point in the history
Fix bug about 'receive all' at QuestPopup
  • Loading branch information
sonohoshi authored Jun 26, 2024
2 parents 50c8b9b + 79569d5 commit daed39b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nekoyume/Assets/_Scripts/UI/Widget/Popup/QuestPopup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected override void Awake()

public override void Show(bool ignoreShowAnimation = false)
{
_questList.Value = States.Instance.CurrentAvatarState.questList;
_questList.SetValueAndForceNotify(States.Instance.CurrentAvatarState.questList);
_toggleGroup.SetToggledOffAll();
adventureButton.SetToggledOn();
ChangeState(0);
Expand Down Expand Up @@ -104,7 +104,7 @@ public void SetList(QuestList list)
return;
}

_questList.Value = list;
_questList.SetValueAndForceNotify(list);
ChangeState((int)filterType);
}

Expand Down Expand Up @@ -167,7 +167,8 @@ private void ReceiveAll()
return new MailReward(item, count);
}).ToList();
// 퀘스트 완료처리된 목록으로 갱신해서 레드닷 비활성화처리
ReactiveAvatarState.UpdateQuestList(States.Instance.CurrentAvatarState.questList);
ReactiveAvatarState.UpdateQuestList(questList);
_questList.SetValueAndForceNotify(questList);
Find<MailRewardScreen>().Show(mailRewards);
}
}
Expand Down

0 comments on commit daed39b

Please sign in to comment.