Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
0xBeycan committed Jul 20, 2024
1 parent fd165a4 commit 1de8b68
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions classes/pro/MeprCryptoPayGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,12 +413,13 @@ private function show_cryptopay_payment_form($txn): void
$meprOptions = MeprOptions::fetch();
$amount = MeprUtils::maybe_round_to_minimum_amount($txn->total);

Hook::addFilter('theme', function () {
Hook::addFilter('theme', function (array $theme) {
if (isset($this->settings->cryptopay_theme)) {
return trim($this->settings->cryptopay_theme);
$theme['mode'] = trim($this->settings->cryptopay_theme);
} else {
return 'light';
$theme['mode'] = 'light';
}
return $theme;
});

if ($this->settings->invoice_header ?? false) {
Expand Down

0 comments on commit 1de8b68

Please sign in to comment.