Skip to content

Commit

Permalink
binary condition in attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
robsondrs committed Feb 4, 2022
1 parent 8204336 commit 2415e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function renderItem($model, $key, $index)
'{{sign}}' => $receive->right? 'right': 'left',
'{{message}}' => $receive->message,
'{{title}}' => $receive->title,
'{{attachment}}' => '<strong>Anexos:</strong> <br/>'.$receive->attachment,
'{{attachment}}' => $receive->attachment ? "<strong>Anexos:</strong><br/>{$receive->attachment}" : '',
]);
}
}

0 comments on commit 2415e92

Please sign in to comment.