mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +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(
|
||||
this[filesSymbol]["personalization.json"] &&
|
||||
this[propsSymbol]["nfc"] &&
|
||||
this[filesSymbol]["personalization.json"] &&
|
||||
fileNames.find((file) =>
|
||||
/personalizationLogo@(?:.{2})/.test(file),
|
||||
),
|
||||
);
|
||||
|
||||
if (this[propsSymbol]["nfc"] && !meetsPersonalizationRequirements) {
|
||||
if (!meetsPersonalizationRequirements) {
|
||||
/**
|
||||
* Looking for every personalization file
|
||||
* and removing it
|
||||
|
||||
Reference in New Issue
Block a user