Skip to content

Commit

Permalink
chore: error message on pending epochs (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
nick134-bit authored Dec 14, 2023
1 parent 6fb49cb commit ce5b439
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ export const useTransaction = () => {
} else if ((/out of gas/u).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 ((/before the new\/latest epoch/u).test(e?.toString())) {
setError('Epoch not yet created.')
message = 'Please force the pending epoch on the dashboard.'
} else if (
(/There are unclaimed rewards available./u).test(e?.toString())
) {
Expand Down

0 comments on commit ce5b439

Please sign in to comment.