Skip to content

Commit 90d27a8

Browse files
committed
useLog small refactor
1 parent 8309310 commit 90d27a8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎front/src/core/use-log.hook.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ export const useLog = () => {
66

77
const appendToLog = (value: string) => {
88
const newText = `${logRef.current}\n${value} `;
9-
internalSetLog(newText);
10-
logRef.current = newText;
9+
setLog(newText);
1110
};
1211

1312
const setLog = (content: string) => {

0 commit comments

Comments
 (0)