We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab20d33 commit be0879eCopy full SHA for be0879e
index.ts
@@ -332,7 +332,7 @@ function getHistoryFromLocalStorage() {
332
return JSON.parse(localStorage.getItem("calculatorHistory") || "[]");
333
}
334
335
-function setHistoryToLocalStorage(history: any) {
+function setHistoryToLocalStorage(history: string[]) {
336
localStorage.setItem("calculatorHistory", JSON.stringify(history.slice(-10)));
337
338
0 commit comments