forked from abner/for-legacy-web
fix(invites): handle invites correctly
This commit is contained in:
@@ -254,7 +254,7 @@ export const SpecialPromptModal = observer((props: SpecialProps) => {
|
|||||||
|
|
||||||
props.target
|
props.target
|
||||||
.createInvite()
|
.createInvite()
|
||||||
.then((code) => setCode(code))
|
.then(({ _id }) => setCode(_id))
|
||||||
.catch((err) => setError(takeError(err)))
|
.catch((err) => setError(takeError(err)))
|
||||||
.finally(() => setProcessing(false));
|
.finally(() => setProcessing(false));
|
||||||
}, [props.target]);
|
}, [props.target]);
|
||||||
|
|||||||
Reference in New Issue
Block a user