()
| 61 | }; |
| 62 | |
| 63 | const onSuccessfulSignIn = async () => { |
| 64 | const session = await getSession(); |
| 65 | if (session && communityId) { |
| 66 | const res = await join({ communityId }); |
| 67 | if (res.ok) { |
| 68 | window.location.replace(window.location.href); |
| 69 | return; |
| 70 | } |
| 71 | } |
| 72 | setOpen(false); |
| 73 | }; |
| 74 | |
| 75 | const onCloseModal = () => { |
| 76 | setOpen(false); |
nothing calls this directly
no test coverage detected