update: bonus controller

- Simplify Bool Identical True
This commit is contained in:
HDVinnie
2021-08-11 15:21:01 -04:00
parent 46e5bc3f95
commit e7215da7eb
+1 -1
View File
@@ -210,7 +210,7 @@ class BonusController extends Controller
if ($userbon >= $itemCost) {
$flag = $this->doItemExchange($user->id, $id);
if ($flag === false) {
if (!$flag) {
return \redirect()->route('bonus_store')
->withErrors('Bonus Exchange Failed!');
}