From db5d37f5d48aa5b582c55cee1fe509e625a3d206 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Wed, 9 Jun 2021 07:43:06 -0400 Subject: [PATCH] Fixed History stats actions filter values not being properly implemented. --- frontend/src/@types/api.d.ts | 2 +- frontend/src/History/Statistics/options.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/@types/api.d.ts b/frontend/src/@types/api.d.ts index 968237290..745abd12c 100644 --- a/frontend/src/@types/api.d.ts +++ b/frontend/src/@types/api.d.ts @@ -220,7 +220,7 @@ namespace History { }; type TimeframeOptions = "week" | "month" | "trimester" | "year"; - type ActionOptions = 0 | 1 | 2; + type ActionOptions = 1 | 2 | 3; } interface SearchResultType { diff --git a/frontend/src/History/Statistics/options.ts b/frontend/src/History/Statistics/options.ts index 2d223b9b6..5cdd63478 100644 --- a/frontend/src/History/Statistics/options.ts +++ b/frontend/src/History/Statistics/options.ts @@ -1,16 +1,16 @@ export const actionOptions: SelectorOption[] = [ { label: "Automatically Downloaded", - value: 0, - }, - { - label: "Manually Downloaded", value: 1, }, { - label: "Upgraded", + label: "Manually Downloaded", value: 2, }, + { + label: "Upgraded", + value: 3, + }, ]; export const timeframeOptions: SelectorOption[] = [