fix(invites): handle invites correctly

This commit is contained in:
Paul Makles 2022-03-04 18:26:36 +00:00
parent d95070d8c7
commit dc3925c003

View file

@ -254,7 +254,7 @@ export const SpecialPromptModal = observer((props: SpecialProps) => {
props.target
.createInvite()
.then((code) => setCode(code))
.then(({ _id }) => setCode(_id))
.catch((err) => setError(takeError(err)))
.finally(() => setProcessing(false));
}, [props.target]);