update commit message
This commit is contained in:
@@ -52,6 +52,10 @@
|
||||
Object.assign(api, config || {});
|
||||
}
|
||||
|
||||
function hasTarotAccess() {
|
||||
return window.TarotAppConfig?.hasTarotAccess?.() === true;
|
||||
}
|
||||
|
||||
function getState() {
|
||||
return api.getState?.() || {};
|
||||
}
|
||||
@@ -158,7 +162,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
if (associations.tarotCard) {
|
||||
if (associations.tarotCard && hasTarotAccess()) {
|
||||
const explicitTrumpNumber = Number(associations.tarotTrumpNumber);
|
||||
const tarotTrumpNumber = Number.isFinite(explicitTrumpNumber) ? explicitTrumpNumber : null;
|
||||
const tarotLabel = api.getDisplayTarotName(associations.tarotCard, tarotTrumpNumber);
|
||||
|
||||
Reference in New Issue
Block a user