diff --git a/src/routes/api/recovery_codes.ts b/src/routes/api/recovery_codes.ts index 848820981..a98e1e38c 100644 --- a/src/routes/api/recovery_codes.ts +++ b/src/routes/api/recovery_codes.ts @@ -47,7 +47,7 @@ function getUsedRecoveryCodes() { recoveryCodes.forEach((recoveryKey: string) => { if (dateRegex.test(recoveryKey)) usedStatus.push(recoveryKey); - else usedStatus.push(recoveryCodes.indexOf(recoveryKey)); + else usedStatus.push(String(recoveryCodes.indexOf(recoveryKey))); }); return {