Show the pitch only if key is not stored

[MAILPOET-2142]
This commit is contained in:
Pavel Dohnal
2019-09-16 14:47:12 +02:00
committed by Jack Kitterhing
parent daabe385c6
commit 9d5f43b411
3 changed files with 13 additions and 2 deletions

View File

@@ -1,9 +1,12 @@
export const getStepsCount = () => {
let stepsCount = 4;
let stepsCount = 3;
if (window.is_woocommerce_active) {
stepsCount += 1;
}
if (!window.has_premium_key) {
stepsCount += 1;
}
return stepsCount;
};