Fix tests
This commit is contained in:
parent
a9d4ca07a0
commit
ac5dfe3a1b
1 changed files with 2 additions and 2 deletions
|
|
@ -323,10 +323,10 @@
|
|||
});
|
||||
|
||||
// show/hide buttons based on loaded values
|
||||
if ({{ $client->hasAddress() ? 'true' : 'false' }}) {
|
||||
if ({{ $client && $client->hasAddress() ? 'true' : 'false' }}) {
|
||||
$('#copyBillingDiv').show();
|
||||
}
|
||||
if ({{ $client->hasAddress(true) ? 'true' : 'false' }}) {
|
||||
if ({{ $client && $client->hasAddress(true) ? 'true' : 'false' }}) {
|
||||
$('#copyShippingDiv').show();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue