diff --git a/front/src/lib/types.ts b/front/src/lib/types.ts index 91758d3..72d349a 100644 --- a/front/src/lib/types.ts +++ b/front/src/lib/types.ts @@ -22,6 +22,6 @@ export type CartItem = { }; export type JSONResponse = { - data?: { item: Item[] }; + data?: any; // Todo make this _not_ an any error?: string; }; diff --git a/front/src/lib/utils.js b/front/src/lib/utils.js index d5ece3e..726a1f3 100644 --- a/front/src/lib/utils.js +++ b/front/src/lib/utils.js @@ -1,6 +1,6 @@ export function expandOnTyping(element) { element.oninput = (event) => { - event.target.style.height = ""; + event.target.style.height = ""; // skipcq: JS-W1032 event.target.style.height = `${event.target.scrollHeight + 2}px`; }; }