Explorar o código

Update Common.ts

czhen %!s(int64=4) %!d(string=hai) anos
pai
achega
bc3a4f3f81
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;