mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
show proper errors on submit publish (#1105)
* exit when user rejects the transaction * if the message is too long, return generic label * in the case (should not happen) the message is longer than one row, then show ellipsis
This commit is contained in:
parent
ed15952a85
commit
4bd9dddf3b
@ -79,6 +79,10 @@
|
||||
margin-left: var(--spacer);
|
||||
font-size: var(--font-size-small);
|
||||
color: var(--brand-alert-red);
|
||||
display: block;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
@keyframes loader {
|
||||
|
@ -105,6 +105,10 @@ export default function PublishPage({
|
||||
}))
|
||||
} catch (error) {
|
||||
LoggerInstance.error('[publish] error', error.message)
|
||||
if (error.message.length > 65) {
|
||||
error.message = 'No Token created.'
|
||||
}
|
||||
|
||||
setFeedback((prevState) => ({
|
||||
...prevState,
|
||||
'1': {
|
||||
|
Loading…
Reference in New Issue
Block a user