From 21e7fbf01139aa61333a311533aca16f0061ddd5 Mon Sep 17 00:00:00 2001 From: hippoz Date: Fri, 22 Oct 2021 15:46:46 +0300 Subject: [PATCH] clear channel name input after creation --- src/components/channel/ChannelCreateButton.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/channel/ChannelCreateButton.js b/src/components/channel/ChannelCreateButton.js index 8fa81cb..fe80dc3 100644 --- a/src/components/channel/ChannelCreateButton.js +++ b/src/components/channel/ChannelCreateButton.js @@ -14,6 +14,7 @@ export default function ChannelCreateButton() { const handleClose = () => { setIsDialogOpen(false); setInfo(null); + setChannelNameInput(""); }; const createChannel = async () => {