Replace var
with let
and const
for Modern JavaScript Standards
#2000
Labels
var
with let
and const
for Modern JavaScript Standards
#2000
Describe the bug
Looks like we are using older JS variables, we should move towards modern tech stack. Since
let
const
supersedevar
and help with proper scopingTo Reproduce
Seems we have a few references to "var" for typescript files
https://github.com/search?q=repo%3AelizaOS%2Feliza+%2Fvar+.*%2F+path%3A**%2F*.ts&type=code
Expected behavior
update references to const, (seems like they are coming from hooks)
Expected
Actual
Expected
Actual
^ this one might need to be looked into more. Seems like tx is only logged not sure if it's referenced outside of scope.
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: