Skip to content

Commit

Permalink
fix lingering sortie state.
Browse files Browse the repository at this point in the history
Updated because now API `kcsapi/api_start2/get_option_setting` is the
first to load.
  • Loading branch information
Javran committed Nov 11, 2024
1 parent 977c84a commit 1a2639f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions views/redux/sortie/index.es
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ export function reducer(state = initState, { type, path, postBody, body }) {
switch (type) {
/*
Clear sortie state if we have returned to port (api_port/port)
or if we have reloaded in the middle of a sorite, in which case api_req_member/get_incentive
or if we have reloaded in the middle of a sortie, in which case
`kcsapi/api_start2/get_option_setting`
is the first API that game calls.
*/
case '@@Response/kcsapi/api_port/port':
case '@@Request/kcsapi/api_req_member/get_incentive':
case '@@Request/kcsapi/api_start2/get_option_setting':
return {
...state,
combinedFlag:
Expand Down

0 comments on commit 1a2639f

Please sign in to comment.