Skip to content

Commit

Permalink
Merge pull request #191 from buggregator/issue/#188-fix-event-download
Browse files Browse the repository at this point in the history
[#188] fix event download action in prevew-card
  • Loading branch information
Kreezag committed Jul 4, 2024
2 parents 94852ad + 7015514 commit 2c08f05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shared/lib/io/use-events-requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export const useEventsRequests: TUseEventsRequests = () => {
const getSingle = (id: EventId) => fetch(getEventRestUrl(id), {headers})
.then((response) => response.json())
.then((response) => {
if (response?.data) {
return response.data as ServerEvent<unknown>
if (response) {
return response as ServerEvent<unknown>
}
return null;
})
Expand Down

0 comments on commit 2c08f05

Please sign in to comment.