From 1a2639f0a4306281e548c0baea816ef0ed69df79 Mon Sep 17 00:00:00 2001 From: Javran Cheng Date: Sun, 10 Nov 2024 21:20:26 -0800 Subject: [PATCH] fix lingering `sortie` state. Updated because now API `kcsapi/api_start2/get_option_setting` is the first to load. --- views/redux/sortie/index.es | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/views/redux/sortie/index.es b/views/redux/sortie/index.es index 40ab4a8be..ec51176a7 100644 --- a/views/redux/sortie/index.es +++ b/views/redux/sortie/index.es @@ -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: