Skip to content

Commit

Permalink
[CodeFactor] Apply fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
code-factor committed Nov 23, 2023
1 parent 01ae274 commit 2422f1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion gui/src/components/main_startup_check.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ var updateAvailable = process.env.FDUpdateAvail;
// start modemCheck modal once on startup
onMounted(() => {
getModemState().then();
getVersion().then(res => {state.modem_version=res});
getVersion().then((res) => {
state.modem_version = res;
});
new Modal("#modemCheck", {}).show();
});
Expand Down
4 changes: 3 additions & 1 deletion gui/src/js/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export async function apiPost(endpoint, payload = {}) {
}

export async function getVersion() {
let data = await apiGet("/version").then(res => {return res});
let data = await apiGet("/version").then((res) => {
return res;
});
return data.version;
//return data["version"];
}
Expand Down

0 comments on commit 2422f1d

Please sign in to comment.