Oprava překlepu

This commit is contained in:
Martin Berka 2023-06-16 21:05:36 +02:00
parent b2c8b312c3
commit 09264720d1

View File

@ -63,7 +63,7 @@ export default function Header() {
const weight = (2 ** order) % 11; const weight = (2 ** order) % 11;
sum += Number.parseInt(char) * weight sum += Number.parseInt(char) * weight
} }
if (sum % 11 != 0) { if (sum % 11 !== 0) {
throw Error("Číslo účtu je neplatné") throw Error("Číslo účtu je neplatné")
} }
} catch (e) { } catch (e) {