diff --git a/src/app/organisms/public-channels/PublicChannels.jsx b/src/app/organisms/public-channels/PublicChannels.jsx
index 624ea48..c69366e 100644
--- a/src/app/organisms/public-channels/PublicChannels.jsx
+++ b/src/app/organisms/public-channels/PublicChannels.jsx
@@ -53,7 +53,7 @@ function TryJoinWithAlias({ alias, onRequestClose }) {
} catch (e) {
setStatus({
isJoining: false,
- error: `Unable to join ${alias}. Either room is private or doesn't exist.`,
+ error: `Unable to join ${alias}. Either channel is private or doesn't exist.`,
roomId: null,
tempRoomId: null,
});
@@ -145,7 +145,10 @@ function PublicChannels({ isOpen, searchTerm, onRequestClose }) {
}
} catch (e) {
updatePublicChannels([]);
- updateSearchQuery({ error: 'Something went wrong!' });
+ updateSearchQuery({
+ error: 'Something went wrong!',
+ alias: isInputAlias ? inputChannelName : null,
+ });
updateIsSearching(false);
updateNextBatch(undefined);
updateIsViewMore(false);
@@ -247,7 +250,7 @@ function PublicChannels({ isOpen, searchTerm, onRequestClose }) {
{ searchQuery.error && (
<>
{searchQuery.error}
- {searchQuery.alias !== null && (
+ {typeof searchQuery.alias === 'string' && (
)}
>