diff --git a/src/utils/history.ts b/src/utils/history.ts index 0de2298..aaedee3 100644 --- a/src/utils/history.ts +++ b/src/utils/history.ts @@ -4,9 +4,9 @@ let historyIndex = 0; export function list(): string { const array: Array = []; - for (const key in history) { - const value: string = history[key]; - array.push(`${key}: ${value}`); + for (const index in history) { + const value: string = history[index]; + array.push(`${index}: ${value}`); } return array.join('\n');