-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementProvides an enhancement to the websiteProvides an enhancement to the websitefrontendRelated to frontendRelated to frontend
Description
website/packages/client/src/components/HappeningInfoModal/index.tsx
Lines 50 to 73 in edb835d
| useEffect(() => { | |
| const happeningId = | |
| parseInt(searchParams.get('happeningId') || '0') || null; | |
| if (happeningId) { | |
| //TODO: check it only when all stuff is already loaded | |
| if (!happening) { | |
| getHappening(happeningId) | |
| .unwrap() | |
| .then((res) => { | |
| if (res.status === 'success') { | |
| dispatch(mergeHappenings([res.data])); | |
| } | |
| dispatch( | |
| setHappeningInfoModalData({ | |
| happeningId: happeningId, | |
| visible: true, | |
| }), | |
| ); | |
| }); | |
| } | |
| } | |
| }, [searchParams]); |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementProvides an enhancement to the websiteProvides an enhancement to the websitefrontendRelated to frontendRelated to frontend