Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Mar 26, 2024
1 parent 1687473 commit 88efc6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Fields/Items.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function fields(Request $request): array
Product::getProxiedClass(),
Variant::getProxiedClass(),
])
->display(static function (Model $relatable): ?string {
->display(static function (Model $relatable): string {
return (string) match ($relatable::class) {
Product::getProxiedClass() => $relatable->name,
Variant::getProxiedClass() => $relatable->alias,
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Cart extends Model implements Contract
protected static function booted(): void
{
static::creating(static function (self $cart): void {
$cart->currency = $cart->currency ?: Bazar::getCurrency();
$cart->setAttribute('currency', $cart->currency ?: Bazar::getCurrency());
});
}

Expand Down

0 comments on commit 88efc6d

Please sign in to comment.