Commit 09a87788 authored by mgabdev's avatar mgabdev

Added alert for successfully scheduling a status

parent d2e4a046
......@@ -144,6 +144,13 @@ export function handleComposeSubmit(dispatch, getState, response, status) {
const isScheduledStatus = response.data['scheduled_at'] !== undefined;
if (isScheduledStatus) {
dispatch(showAlertForError({
response: {
data: {},
status: 200,
statusText: 'Successfully scheduled status',
}
}));
dispatch(submitComposeSuccess({ ...response.data }));
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment