mirror of
https://github.com/selfxyz/self.git
synced 2026-01-09 14:48:06 -05:00
fix: use an empty array if forbidden countries are not specified (#1239)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@selfxyz/core",
|
"name": "@selfxyz/core",
|
||||||
"version": "1.1.0-beta.6",
|
"version": "1.1.0-beta.7",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/selfxyz/self"
|
"url": "https://github.com/selfxyz/self"
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ export class SelfBackendVerifier {
|
|||||||
(x) => publicSignals[discloseIndices[attestationId].forbiddenCountriesListPackedIndex + x]
|
(x) => publicSignals[discloseIndices[attestationId].forbiddenCountriesListPackedIndex + x]
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
const forbiddenCountriesListVerificationConfig = verificationConfig.excludedCountries;
|
const forbiddenCountriesListVerificationConfig = verificationConfig.excludedCountries || [];
|
||||||
|
|
||||||
const isForbiddenCountryListValid = forbiddenCountriesListVerificationConfig.every((country) =>
|
const isForbiddenCountryListValid = forbiddenCountriesListVerificationConfig.every((country) =>
|
||||||
forbiddenCountriesList.includes(country as Country3LetterCode)
|
forbiddenCountriesList.includes(country as Country3LetterCode)
|
||||||
|
|||||||
Reference in New Issue
Block a user