mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
fix(invites): handle invites correctly
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user