Skip to content

Commit

Permalink
Merge pull request #47 from autentia/fix/show-api-version
Browse files Browse the repository at this point in the history
fix: show api version
  • Loading branch information
Kemil Beltre authored Mar 21, 2022
2 parents 619d095 + a249bbb commit 61e3994
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/modules/login/components/AppVersion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Text p={2} alignSelf="flex-end">
app: v{appVersion.version} {isLoading! && apiVersion ? `| api: v${apiVersion}` : null}
app: v{appVersion.version} {apiVersion ? `| api: v${apiVersion}` : null}
</Text>
)
}

0 comments on commit 61e3994

Please sign in to comment.