Reset some code.

This commit is contained in:
James Cole
2019-04-11 06:06:25 +02:00
parent 966186cccd
commit 6f063a134f
14 changed files with 291 additions and 301 deletions

View File

@@ -172,7 +172,7 @@ class TransactionGroupTwig extends Twig_Extension
private function normalGroupAmount(array $array): string
{
// take cue from the first entry in the array:
$first = $array['transactions'][0];
$first = reset($array['transactions']);
$type = $first['transaction_type_type'] ?? TransactionType::WITHDRAWAL;
$amount = $array['sum'] ?? '0';
$colored = true;