Skip to content

Commit

Permalink
Fix: 稀に発生する Vuex エラーの修正を試みる
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Jan 5, 2025
1 parent f8b81cc commit 4afed1f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/store/setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ export const settingStore = createPartialStore<SettingStoreTypes>({
acceptRetrieveTelemetry: acceptRetrieveTelemetry == "Accepted",
});
*/
if (acceptRetrieveTelemetry !== state.acceptRetrieveTelemetry) {
const currentAcceptRetrieveTelemetry = state.acceptRetrieveTelemetry;
if (acceptRetrieveTelemetry !== currentAcceptRetrieveTelemetry) {
void useAnalytics().trackEvent("aisp_accept_retrieve_telemetry_update", {
acceptRetrieveTelemetry: acceptRetrieveTelemetry == "Accepted",
});
Expand All @@ -288,7 +289,8 @@ export const settingStore = createPartialStore<SettingStoreTypes>({
acceptTerms: acceptTerms == "Accepted",
});
*/
if (acceptTerms !== state.acceptTerms) {
const currentAcceptTerms = state.acceptTerms;
if (acceptTerms !== currentAcceptTerms) {
void useAnalytics().trackEvent("aisp_accept_terms_update", {
acceptTerms: acceptTerms == "Accepted",
});
Expand Down

0 comments on commit 4afed1f

Please sign in to comment.