mirror of
https://github.com/revoltchat/revite.git
synced 2025-02-22 16:21:03 -05:00
fix(invites): handle invites correctly
This commit is contained in:
parent
d95070d8c7
commit
dc3925c003
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue