mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-21 09:00:07 +00:00
Some code cleanup
Signed-off-by: James Cole <thegrumpydictator@gmail.com>
This commit is contained in:
@@ -4,7 +4,6 @@ use Auth;
|
||||
use Carbon\Carbon;
|
||||
use Config;
|
||||
use FireflyIII\Http\Requests\NewUserFormRequest;
|
||||
use FireflyIII\Models\AccountMeta;
|
||||
use FireflyIII\Repositories\Account\AccountRepositoryInterface as ARI;
|
||||
use Preferences;
|
||||
use Session;
|
||||
|
||||
@@ -161,7 +161,7 @@ class TransactionController extends Controller
|
||||
'tags' => join(',', $journal->tags->pluck('tag')->toArray()),
|
||||
];
|
||||
|
||||
$category = $journal->categories()->first();
|
||||
$category = $journal->categories()->first();
|
||||
if (!is_null($category)) {
|
||||
$preFilled['category'] = $category->name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user