mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 19:25:23 +00:00
Moved part of meetsPersonalizationRequirements condition
This commit is contained in:
@@ -575,13 +575,14 @@ export default class PKPass extends Bundle {
|
|||||||
// *********************** //
|
// *********************** //
|
||||||
|
|
||||||
const meetsPersonalizationRequirements = Boolean(
|
const meetsPersonalizationRequirements = Boolean(
|
||||||
|
this[propsSymbol]["nfc"] &&
|
||||||
this[filesSymbol]["personalization.json"] &&
|
this[filesSymbol]["personalization.json"] &&
|
||||||
fileNames.find((file) =>
|
fileNames.find((file) =>
|
||||||
/personalizationLogo@(?:.{2})/.test(file),
|
/personalizationLogo@(?:.{2})/.test(file),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
if (this[propsSymbol]["nfc"] && !meetsPersonalizationRequirements) {
|
if (!meetsPersonalizationRequirements) {
|
||||||
/**
|
/**
|
||||||
* Looking for every personalization file
|
* Looking for every personalization file
|
||||||
* and removing it
|
* and removing it
|
||||||
|
|||||||
Reference in New Issue
Block a user