Commit d57202a4 authored by Mark Harding's avatar Mark Harding

(fix): do not return balance if no user set

parent 6b532313
No related merge requests found
Pipeline #77823309 running with stages
......@@ -44,6 +44,10 @@ class Balance
*/
public function get()
{
if (!$this->user) {
return 0;
}
$address = $this->user->getEthWallet();
if (!$address) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment