Skip to content

Commit

Permalink
152 minifsering av template strings (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-nav authored Jan 9, 2024
1 parent 6d59574 commit aa3745f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
3 changes: 1 addition & 2 deletions packages/client/src/analytics/task-analytics/ta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ const fetchAndStart = (state: AppState) => {
return res.json();
})
.then((surveys) => {
console.log(surveys);
if (!Array.isArray(surveys)) {
if (!Array.isArray(surveys)) {
throw Error(
`Invalid type for surveys response - ${JSON.stringify(surveys)}`,
);
Expand Down
11 changes: 5 additions & 6 deletions packages/client/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type AuthResponse = Auth;

export async function checkAuth() {
const authUrl = `${window.__DECORATOR_DATA__.env.API_DEKORATOREN_URL}/auth`;
const sessionUrl = window.__DECORATOR_DATA__.env.API_SESSION_URL;
// const sessionUrl = window.__DECORATOR_DATA__.env.API_SESSION_URL;

try {
const fetchResponse = await fetch(authUrl, {
Expand All @@ -20,12 +20,11 @@ export async function checkAuth() {

const response = await fetchResponse.json();

const sessionResponse = await fetch(sessionUrl, {
credentials: "include",
});
// const sessionResponse = await fetch(sessionUrl, {
// credentials: "include",
// });

const session = await sessionResponse.json();
console.log(session)
// const session = await sessionResponse.json();

return response as Auth;
// const session = await sessionResponse.json();
Expand Down
3 changes: 0 additions & 3 deletions packages/client/src/views/decorator-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ class DecoratorUtils extends HTMLElement {
this.languageSelector = this.querySelector(
'language-selector',
) as LanguageSelector;
console.log('----START----')
console.log(this.languageSelector)
console.log('----END----')
this.breadbrumbs = this.querySelector(
'nav[is="d-breadcrumbs"]',
) as HTMLElement;
Expand Down

0 comments on commit aa3745f

Please sign in to comment.