Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
fix: blocking on failing ctype creation
Browse files Browse the repository at this point in the history
  • Loading branch information
rflechtner committed Jun 16, 2021
1 parent 03ee409 commit 29199c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/containers/CtypeCreate/CtypeCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ class CTypeCreate extends React.Component<Props, State> {
resolveOn: BlockchainUtils.IS_IN_BLOCK,
}
)
tx.then(() => {
blockUi.updateMessage(
`CTYPE stored on blockchain,\nnow registering CTYPE`
) // TODO: add onrejected when sdk provides error handling
})
.then(() => {
blockUi.updateMessage(
`CTYPE stored on blockchain,\nnow registering CTYPE`
) // TODO: add onrejected when sdk provides error handling
})
.catch((error) => {
errorService.log({
error,
Expand Down

0 comments on commit 29199c2

Please sign in to comment.