From 9dbc3ab9697d629cd69361ae60117a4eecb67ccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=8Carodej?= Date: Tue, 11 Jan 2022 07:27:15 +0100 Subject: [PATCH] UI improvements --- config/content.php | 2 +- src/App/Console/Commands/SetupDevEnvironment.php | 2 +- src/App/Users/Actions/AutoSubscribeForMeteredBillingAction.php | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/content.php b/config/content.php index 467b11e4..9008087d 100644 --- a/config/content.php +++ b/config/content.php @@ -197,7 +197,7 @@ return [ ], [ 'name' => 'registration_bonus_amount', - 'value' => null, + 'value' => 0, ], ], ], diff --git a/src/App/Console/Commands/SetupDevEnvironment.php b/src/App/Console/Commands/SetupDevEnvironment.php index cb8b8c0d..915db5e8 100644 --- a/src/App/Console/Commands/SetupDevEnvironment.php +++ b/src/App/Console/Commands/SetupDevEnvironment.php @@ -1001,7 +1001,7 @@ class SetupDevEnvironment extends Command ], [ 'name' => 'user_verification', - 'value' => 1, + 'value' => 0, ], [ 'name' => 'allowed_payments', diff --git a/src/App/Users/Actions/AutoSubscribeForMeteredBillingAction.php b/src/App/Users/Actions/AutoSubscribeForMeteredBillingAction.php index 716e409a..46ad7d2c 100644 --- a/src/App/Users/Actions/AutoSubscribeForMeteredBillingAction.php +++ b/src/App/Users/Actions/AutoSubscribeForMeteredBillingAction.php @@ -32,13 +32,14 @@ class AutoSubscribeForMeteredBillingAction 'status' => 'completed', 'type' => 'credit', 'driver' => 'system', - 'note' => __('Bonus'), + 'note' => __('Registration Bonus'), 'currency' => $plan->currency, 'amount' => $settings['registration_bonus_amount'], ]); } else { // Create balance with 0 amount $user->balance()->create([ + 'amount' => 0, 'currency' => $plan->currency, ]); }