Explorar el Código

subscription: fix bug on missing dolibarr account

Olivier Massot hace 4 años
padre
commit
03c44b1438
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      pages/subscription.vue

+ 3 - 3
pages/subscription.vue

@@ -16,13 +16,13 @@ Page 'Mon abonnement'
                 <tbody>
                   <tr>
                     <td>{{ $t('client_id') }}</td>
-                    <td>{{ dolibarrAccount.clientNumber }}</td>
+                    <td>{{ dolibarrAccount ? dolibarrAccount.clientNumber : '-' }}</td>
                   </tr>
                   <tr>
                     <td>{{ $t('version') }}</td>
-                    <td>{{ $t(dolibarrAccount.product) }}</td>
+                    <td>{{ dolibarrAccount ? $t(dolibarrAccount.product) : '-' }}</td>
                   </tr>
-                  <tr v-if="dolibarrAccount.contract">
+                  <tr v-if="dolibarrAccount && dolibarrAccount.contract">
                     <td>{{ $t('services') }}</td>
                     <td>
                       <div