3
0
mirror of https://github.com/Qortal/q-shop.git synced 2025-01-30 14:52:20 +00:00

updated multi-modal

This commit is contained in:
PhilReact 2024-01-13 14:11:52 +02:00
parent f8c678b740
commit d565c9fabb

View File

@ -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 = ()=> {