fix: feedback from self-hosted envs to discord

This commit is contained in:
Andras Bacsai committed 2024-02-06 11:36:20 +01:00
1 parent 45b736bb01
commit b96807d34c
9 files changed
+42 -17

No files matched your search

+1 -1
View File
@@ -104,7 +104,7 @@ function handleError(?Throwable $error = null, ?Livewire\Component $livewire = n
ray($error);
if ($error instanceof TooManyRequestsException) {
if (isset($livewire)) {
return $livewire->dispatch('error', "Too many requests. Please try again in {$error->secondsUntilAvailable} seconds.");
return $livewire->dispatch('error', "Too many requests.","Please try again in {$error->secondsUntilAvailable} seconds.");
}
return "Too many requests. Please try again in {$error->secondsUntilAvailable} seconds.";
}