Fixed ann removal
This commit is contained in:
@ -5,7 +5,11 @@ const composeRemoveAnnouncementURL = () => (
|
||||
API_URL + '/announcement?'
|
||||
)
|
||||
|
||||
const processRemoveAnnouncement = (data: RemoveAnnouncementResponse): RemoveAnnouncement => {
|
||||
function processRemoveAnnouncement(data: RemoveAnnouncementResponse): RemoveAnnouncement {
|
||||
if (!data.Answer) {
|
||||
throw new Error('Не удалось закрыть объявление')
|
||||
}
|
||||
|
||||
return data.Answer
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user