Skip to content

Commit

Permalink
chore: Error Message for unclaimed rewards (#268)
Browse files Browse the repository at this point in the history
Co-authored-by: nick134 <[email protected]>
  • Loading branch information
nick134-bit and nick134-bit authored Jun 27, 2023
1 parent 38e0da5 commit b21a4f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/Pages/BondingActions/hooks/useTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,10 @@ export const useTransaction = () => {
} else if (/out of gas/i.test(e?.toString())) {
setError('Out of gas, try increasing gas limit on wallet.')
message = 'Out of gas, try increasing gas limit on wallet.'
} else if (
} else if (/There are unclaimed rewards available./i.test(e?.toString())) {
setError('There are unclaimed rewards available.')
message = 'There are unclaimed rewards available. Claim them before attempting to bond/unbond.'
}else if (
/was submitted but was not yet found on the chain/i.test(
e?.toString()
)
Expand Down

0 comments on commit b21a4f5

Please sign in to comment.