Fix rounding null in mempools module (#14290)

This commit is contained in:
Tony Murray
2022-09-04 14:26:02 -05:00
committed by GitHub
parent c2761b4e12
commit 04b7b1cb03

View File

@ -139,7 +139,7 @@ class Mempool extends DeviceRelatedModel implements Keyable
public function setMempoolPercAttribute($percent)
{
$this->attributes['mempool_perc'] = round($percent);
$this->attributes['mempool_perc'] = is_numeric($percent) ? round($percent) : null;
}
public function getCompositeKey()