styling fixes and some typing
diff --git a/src/utils/calculate.ts b/src/utils/calculate.ts
index 6bbbe2e..98d82c3 100644
--- a/src/utils/calculate.ts
+++ b/src/utils/calculate.ts
@@ -23,7 +23,7 @@
const tickets = ["support", "report", "question", "issue", "suggestion", "other"];
-const toHexInteger = (permissions, array?) => {
+const toHexInteger = (permissions: string[], array?: string[]) => {
if (!array) {
array = logs;
}
@@ -35,7 +35,7 @@
return int.toString(16);
};
-const toHexArray = (permissionsHex, array?) => {
+const toHexArray = (permissionsHex: string, array?: string[]) => {
if (!array) {
array = logs;
}
@@ -45,7 +45,7 @@
.split("")
.reverse();
for (const index in int) {
- if (int[index] === "1" && array.length > index) {
+ if (int[index] === "1" && array.length > parseInt(index)) {
permissions.push(array[index]);
}
}