diff --git a/commafeed-client/src/components/content/add/Subscribe.tsx b/commafeed-client/src/components/content/add/Subscribe.tsx index 0c854b0a..ab1f6d24 100644 --- a/commafeed-client/src/components/content/add/Subscribe.tsx +++ b/commafeed-client/src/components/content/add/Subscribe.tsx @@ -39,8 +39,8 @@ export function Subscribe() { }, }) const subscribe = useAsyncCallback(client.feed.subscribe, { - onSuccess: sub => { - dispatch(reloadTree()) + onSuccess: async sub => { + await dispatch(reloadTree()) dispatch(redirectToFeed(sub.data)) }, })