Skip to content

Commit

Permalink
Merge pull request #16 from Lakshan-Madushanka/fix-#15
Browse files Browse the repository at this point in the history
Fix #15
  • Loading branch information
Lakshan-Madushanka authored Aug 29, 2024
2 parents 6171b71 + 040c623 commit 4175e89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Livewire/CreateCommentForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
use Spatie\Honeypot\Http\Livewire\Concerns\HoneypotData;
use Spatie\Honeypot\Http\Livewire\Concerns\UsesSpamProtection;

#[Lazy]
class CreateCommentForm extends Component
{
use UsesSpamProtection;
Expand Down
4 changes: 2 additions & 2 deletions src/Livewire/CreateCommentReplyForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ public function create(CreateCommentReplyAction $replyAction): void

$this->dispatch('reset-editor-' . $this->editorId, value: "");

if (!$this->guest->name ||
($this->guest->name !== $this->guest_name || $this->guest->email !== $this->guest_email)) {
if ($this->guestMode && (!$this->guest->name ||
($this->guest->name !== $this->guest_name || $this->guest->email !== $this->guest_email))) {
$this->dispatch('guest-credentials-changed');
}

Expand Down

0 comments on commit 4175e89

Please sign in to comment.