ok
This commit is contained in:
@@ -84,6 +84,11 @@ const ProductDetail = ({ subscriptions, product, requestLogin, setShowedModal })
|
|||||||
setShowSubscriptionSelector(true);
|
setShowSubscriptionSelector(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
setShowChildSelector(false);
|
||||||
|
setShowNamingInput(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const tokenCookie = document.cookie.split('; ').find(row => row.startsWith('token='));
|
const tokenCookie = document.cookie.split('; ').find(row => row.startsWith('token='));
|
||||||
const token = tokenCookie ? tokenCookie.split('=')[1] : '';
|
const token = tokenCookie ? tokenCookie.split('=')[1] : '';
|
||||||
@@ -117,7 +122,7 @@ const ProductDetail = ({ subscriptions, product, requestLogin, setShowedModal })
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (selectedSubscriptionId === product.id) {
|
if (selectedSubscriptionId === 0) {
|
||||||
setShowNamingInput(true);
|
setShowNamingInput(true);
|
||||||
} else {
|
} else {
|
||||||
const tokenCookie = document.cookie.split('; ').find(row => row.startsWith('token='));
|
const tokenCookie = document.cookie.split('; ').find(row => row.startsWith('token='));
|
||||||
@@ -231,8 +236,8 @@ const ProductDetail = ({ subscriptions, product, requestLogin, setShowedModal })
|
|||||||
<input
|
<input
|
||||||
type="radio"
|
type="radio"
|
||||||
name="subscription"
|
name="subscription"
|
||||||
checked={selectedSubscriptionId === product.id}
|
checked={selectedSubscriptionId === 0}
|
||||||
onChange={() => setSelectedSubscriptionId(product.id)}
|
onChange={() => {setSelectedSubscriptionId(0); console.log(product.id)}}
|
||||||
/>
|
/>
|
||||||
Buat {product.name.split('%%%')[0]} baru
|
Buat {product.name.split('%%%')[0]} baru
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user