Skip to content

Commit

Permalink
fix(GiftAidField): fix gift donation total missing pound sign;
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptovski committed Nov 25, 2024
1 parent 13b9b61 commit 957edd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GiftAidField.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function get_calculated_gift(): string
$totalAmt = $donation + $amount;
$displayNum = number_format((float) $totalAmt, 2, '.', '');
$searchReplace = [
'{{ donation }}' => "<span class=\"gform_donation_total\">£{$donation}</span>",
'{{ donation }}' => "<span>£<span class=\"gform_donation_total\">{$donation}</span></span>",
// phpcs:ignore Generic.Files.LineLength.TooLong
'{{ calculated_giftaid }}' => "<strong>£<span class=\"gform_donation_gifttotal\">{$displayNum}</span></strong>",
];
Expand Down

0 comments on commit 957edd5

Please sign in to comment.