mirror of
https://github.com/Qortal/q-shop.git
synced 2025-01-30 06: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) {
|
||||
const unsuccessfulPublishes = error?.error?.unsuccessfulPublishes || []
|
||||
if(unsuccessfulPublishes?.length > 0){
|
||||
setListOfUnSuccessfulPublishes(unsuccessfulPublishes)
|
||||
return
|
||||
}
|
||||
if(error?.error === 'User declined request'){
|
||||
if(listOfUnsuccessfulPublishes.length > 0) return
|
||||
onError()
|
||||
return
|
||||
}
|
||||
|
||||
if(error?.error === 'The request timed out'){
|
||||
if(listOfUnsuccessfulPublishes.length > 0) return
|
||||
onError("The request timed out")
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
if(unsuccessfulPublishes?.length > 0){
|
||||
setListOfUnSuccessfulPublishes(unsuccessfulPublishes)
|
||||
|
||||
}
|
||||
|
||||
} finally {
|
||||
|
||||
setIsPublishing(false)
|
||||
}
|
||||
},
|
||||
[publish]
|
||||
[publish, listOfUnsuccessfulPublishes]
|
||||
);
|
||||
|
||||
const retry = ()=> {
|
||||
|
Loading…
Reference in New Issue
Block a user