Fix tests

This commit is contained in:
Hillel Coren 2017-12-06 10:25:53 +02:00
parent a9d4ca07a0
commit ac5dfe3a1b

View File

@ -323,10 +323,10 @@
}); });
// show/hide buttons based on loaded values // show/hide buttons based on loaded values
if ({{ $client->hasAddress() ? 'true' : 'false' }}) { if ({{ $client && $client->hasAddress() ? 'true' : 'false' }}) {
$('#copyBillingDiv').show(); $('#copyBillingDiv').show();
} }
if ({{ $client->hasAddress(true) ? 'true' : 'false' }}) { if ({{ $client && $client->hasAddress(true) ? 'true' : 'false' }}) {
$('#copyShippingDiv').show(); $('#copyShippingDiv').show();
} }
}); });