Skip to content

Commit

Permalink
Ensures block isn't shown without key
Browse files Browse the repository at this point in the history
  • Loading branch information
pushchris committed Nov 11, 2020
1 parent b113827 commit 4916355
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion roundup-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ public function webhook_payload($payload) {

public function checkout_shipping() {
$key = get_option('roundup_public_key');
echo '<roundup-at-checkout key="'.$key.'"></roundup-at-checkout>';
if ($key) {
echo '<roundup-at-checkout key="'.$key.'"></roundup-at-checkout>';
}
}

public function get_totals() {
Expand Down

0 comments on commit 4916355

Please sign in to comment.