mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-18 02:05:36 +00:00
chore: fix typo
This commit is contained in:
parent
18886609ff
commit
644915446b
@ -22,6 +22,6 @@ export const ovhPricingMode = () => [
|
||||
{value: 'create-default', label: t`The domain is free and at the standard price`},
|
||||
{
|
||||
value: 'create-premium',
|
||||
label: t`The domain is free but is a premium. Its price varies from one domain to another`
|
||||
label: t`The domain is free but can be premium. Its price varies from one domain to another`
|
||||
}
|
||||
]
|
||||
@ -74,9 +74,15 @@ readonly class OvhConnector implements ConnectorInterface
|
||||
$offers = $conn->get("/order/cart/{$cartId}/domain", [
|
||||
'domain' => $ldhName,
|
||||
]);
|
||||
|
||||
$pricingModes = ['create-premium'];
|
||||
if ('create-premium' !== $authData['pricingMode']) {
|
||||
$pricingModes[] = $authData['pricingMode'];
|
||||
}
|
||||
|
||||
$offer = array_filter($offers, fn ($offer) => 'create' === $offer['action']
|
||||
&& true === $offer['orderable']
|
||||
&& $offer['pricingMode'] === $authData['pricingMode']
|
||||
&& in_array($offer['pricingMode'], $pricingModes)
|
||||
);
|
||||
if (empty($offer)) {
|
||||
$conn->delete("/order/cart/{$cartId}");
|
||||
|
||||
@ -537,7 +537,7 @@ msgstr ""
|
||||
|
||||
#: assets/utils/providers/ovh.tsx:25
|
||||
msgid ""
|
||||
"The domain is free but is a premium. Its price varies from one domain to "
|
||||
"The domain is free but can be premium. Its price varies from one domain to "
|
||||
"another"
|
||||
msgstr ""
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user