fix(invites): handle invites correctly

pull/1049/head
Paul Makles 2022-03-04 18:26:36 +00:00
parent cdbe6443ba
commit e9585a66a8
1 changed files with 1 additions and 1 deletions

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]);