Skip to content

Commit

Permalink
feat: improve offline error message in useOfflineSnackbar hook
Browse files Browse the repository at this point in the history
  • Loading branch information
deeonwuli committed Jan 27, 2025
1 parent d6f1fe0 commit 2211869
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/webapp/hooks/useOfflineSnackbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export function useOfflineSnackbar(): SnackbarState {
() => (message: Message, options?: Partial<SnackbarOptions>) => {
if (!isOnline) {
return snackbar.error(
i18n.t("You are offline. Please check your internet connection."),
i18n.t(
"This page did not load because you are offline. Please check your internet connection."
),
options
);
} else {
Expand Down

0 comments on commit 2211869

Please sign in to comment.