Skip to content

Commit

Permalink
[#188] fix event download action in prevew-card
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreezag committed Jul 4, 2024
1 parent 94852ad commit 7015514
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 7015514

Please sign in to comment.