diff --git a/src/streams/EditStreamScreen.js b/src/streams/EditStreamScreen.js index cf0479d8529..30a4aae3ea4 100644 --- a/src/streams/EditStreamScreen.js +++ b/src/streams/EditStreamScreen.js @@ -8,6 +8,7 @@ import * as NavigationService from '../nav/NavigationService'; import { useSelector, useDispatch } from '../react-redux'; import { updateExistingStream, navigateBack } from '../actions'; import { getStreamForId } from '../selectors'; +import { showToast } from '../utils/info'; import Screen from '../common/Screen'; import EditStreamCard from './EditStreamCard'; @@ -22,7 +23,11 @@ export default function EditStreamScreen(props: Props): Node { const handleComplete = useCallback( (name: string, description: string, isPrivate: boolean) => { - dispatch(updateExistingStream(stream.stream_id, stream, { name, description, isPrivate })); + dispatch( + updateExistingStream(stream.stream_id, stream, { name, description, isPrivate }), + ).catch(error => { + showToast(error.message); + }); NavigationService.dispatch(navigateBack()); }, [stream, dispatch],