From b729c09bcf10b59af9c3d71142fcab533205a664 Mon Sep 17 00:00:00 2001 From: Kemil Beltre Date: Mon, 21 Mar 2022 08:57:18 +0100 Subject: [PATCH 1/3] fix: show api version --- .../binnacle/components/TimeBalance/SelectTimeBalanceMode.tsx | 2 ++ src/modules/login/components/AppVersion.tsx | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/binnacle/components/TimeBalance/SelectTimeBalanceMode.tsx b/src/modules/binnacle/components/TimeBalance/SelectTimeBalanceMode.tsx index 51b114e7d..b3fb2d5da 100644 --- a/src/modules/binnacle/components/TimeBalance/SelectTimeBalanceMode.tsx +++ b/src/modules/binnacle/components/TimeBalance/SelectTimeBalanceMode.tsx @@ -26,6 +26,8 @@ export const SelectTimeBalanceMode = observer((props: Props) => { const handleSelect = async (event: ChangeEvent) => { const optionSelected = event.target.value + console.log(getTimeBalanceByMonth) + if (optionSelected === 'by-month') { await getTimeBalanceByMonth(undefined) } else { diff --git a/src/modules/login/components/AppVersion.tsx b/src/modules/login/components/AppVersion.tsx index af3d3a254..2f01ff013 100644 --- a/src/modules/login/components/AppVersion.tsx +++ b/src/modules/login/components/AppVersion.tsx @@ -7,11 +7,11 @@ import { GetApiVersionAction } from '../data-access/actions/get-api-version-acti export const AppVersion = () => { const { apiVersion } = useGlobalState(AppState) - const isLoading = useActionOnMount(GetApiVersionAction) + useActionOnMount(GetApiVersionAction) return ( - app: v{appVersion.version} {isLoading! && apiVersion ? `| api: v${apiVersion}` : null} + app: v{appVersion.version} {apiVersion ? `| api: v${apiVersion}` : null} ) } From 5d0eb608c0d4aa3738c755df63eac048d8d9606a Mon Sep 17 00:00:00 2001 From: Kemil Beltre Date: Mon, 21 Mar 2022 09:00:37 +0100 Subject: [PATCH 2/3] chore: downgrade version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 444054833..13c8cf6ca 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "author": { "name": "Emanuel Suca" }, - "version": "4.0.5-SNAPSHOT.0", + "version": "4.0.4-SNAPSHOT.0", "private": true, "homepage": "/binnacle", "scripts": { From a249bbbd276d1d292bdaa84a6ad6993f63d2fd45 Mon Sep 17 00:00:00 2001 From: Kemil Beltre Date: Mon, 21 Mar 2022 09:02:44 +0100 Subject: [PATCH 3/3] chore: remove console log --- .../binnacle/components/TimeBalance/SelectTimeBalanceMode.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/modules/binnacle/components/TimeBalance/SelectTimeBalanceMode.tsx b/src/modules/binnacle/components/TimeBalance/SelectTimeBalanceMode.tsx index b3fb2d5da..51b114e7d 100644 --- a/src/modules/binnacle/components/TimeBalance/SelectTimeBalanceMode.tsx +++ b/src/modules/binnacle/components/TimeBalance/SelectTimeBalanceMode.tsx @@ -26,8 +26,6 @@ export const SelectTimeBalanceMode = observer((props: Props) => { const handleSelect = async (event: ChangeEvent) => { const optionSelected = event.target.value - console.log(getTimeBalanceByMonth) - if (optionSelected === 'by-month') { await getTimeBalanceByMonth(undefined) } else {