Skip to content

Commit

Permalink
Fix translation set
Browse files Browse the repository at this point in the history
  • Loading branch information
petrzpav committed Nov 13, 2024
1 parent f74bfb3 commit 689db52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/Translatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function setAttribute($key, $value)

public function setTranslation($attribute, $locale, $value)
{
if (! $value) {
if ($value) {
$this->translations()->updateOrCreate(
['attribute' => $attribute, 'locale' => $locale],
['value' => $value]
Expand Down

0 comments on commit 689db52

Please sign in to comment.