Browse Source

Update Common.ts

czhen 4 years ago
parent
commit
bc3a4f3f81
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/src/utils/Common.ts

+ 1 - 1
client/src/utils/Common.ts

@@ -46,7 +46,7 @@ export const findKeyValue = (
 ) => obj.find(v => v.key === key)?.value;
 
 export const generateHashCode = (source: string) => {
-  var hash = 0,
+  let hash = 0,
     i,
     chr;
   if (source.length === 0) return hash;