|
|
@@ -306,7 +306,12 @@ Page 'Mon abonnement'
|
|
|
|
|
|
const { data: dolibarrAccount, pending: dolibarrPending } = fetch(DolibarrAccount, organizationProfile.id)
|
|
|
|
|
|
- const { data: mobytStatus, pending: mobytPending } = fetch(MobytUserStatus, organizationProfile.id)
|
|
|
+ if (organizationProfile.hasModule('Sms')) {
|
|
|
+ const {data: mobytStatus, pending: mobytPending} = fetch(MobytUserStatus, organizationProfile.id)
|
|
|
+ } else {
|
|
|
+ const mobytStatus = ref(null)
|
|
|
+ const mobytPending = ref(false)
|
|
|
+ }
|
|
|
|
|
|
const formatCurrency = (value: Number, currency: string): string => {
|
|
|
return value.toLocaleString(i18n.locale.value, { style: 'currency', currency: currency })
|