mirror of
https://github.com/Qortal/q-shop.git
synced 2025-02-01 07:42:21 +00:00
updated multi-modal
This commit is contained in:
parent
f8c678b740
commit
d565c9fabb
@ -53,28 +53,31 @@ interface MultiplePublishProps {
|
|||||||
|
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
const unsuccessfulPublishes = error?.error?.unsuccessfulPublishes || []
|
const unsuccessfulPublishes = error?.error?.unsuccessfulPublishes || []
|
||||||
|
if(unsuccessfulPublishes?.length > 0){
|
||||||
|
setListOfUnSuccessfulPublishes(unsuccessfulPublishes)
|
||||||
|
return
|
||||||
|
}
|
||||||
if(error?.error === 'User declined request'){
|
if(error?.error === 'User declined request'){
|
||||||
|
if(listOfUnsuccessfulPublishes.length > 0) return
|
||||||
onError()
|
onError()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if(error?.error === 'The request timed out'){
|
if(error?.error === 'The request timed out'){
|
||||||
|
if(listOfUnsuccessfulPublishes.length > 0) return
|
||||||
onError("The request timed out")
|
onError("The request timed out")
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(unsuccessfulPublishes?.length > 0){
|
|
||||||
setListOfUnSuccessfulPublishes(unsuccessfulPublishes)
|
|
||||||
|
|
||||||
}
|
|
||||||
} finally {
|
} finally {
|
||||||
|
|
||||||
setIsPublishing(false)
|
setIsPublishing(false)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[publish]
|
[publish, listOfUnsuccessfulPublishes]
|
||||||
);
|
);
|
||||||
|
|
||||||
const retry = ()=> {
|
const retry = ()=> {
|
||||||
|
Loading…
Reference in New Issue
Block a user