Repository: busyorg/busy (js)

Issue:
Issue of last 12 hours post period
#### Expected behavior

An error "Error : You can't vote on last 12 hours of a post" should appear. When we upvote a post within its last 12 hours

#### Actual behavior

An error with no explanations is shown When we upvote a post within its last 12 hours

#### How to reproduce

Just try to upvote a post within its last 12 hours




Pull request description:
fix: add UPVOTE_LOCKOUT error fingerprint
Fixes #2038 

### Changes

* add UPVOTE_LOCKOUT error fingerprint

### Test plan

It would require to find a post almost 7 days old and to make an upvote that will manage to change rshares of the post. I failed to find such post - added test should suffice though.

Patch:
diff --git a/src/common/constants/errors.js b/src/common/constants/errors.js
index 989e02cb..fc1dc5cb 100644
--- a/src/common/constants/errors.js
+++ b/src/common/constants/errors.js
@@ -27,4 +27,8 @@ export default {
     fingerprint: 'abs_rshares > STEEM_VOTE_DUST_THRESHOLD',
     message: 'Your voting power is too small, please accumulate more voting power or steem power.',
   },
+  UPVOTE_LOCKOUT: {
+    fingerprint: 'Cannot increase payout within last twelve hours before payout.',
+    message: "You can't increase payout within last twelve hours before payout.",
+  },
 };


Test patch:
diff --git a/src/client/helpers/__tests__/errorMiddleware.js b/src/client/helpers/__tests__/errorMiddleware.js
index 5f43e975..9921d9cc 100644
--- a/src/client/helpers/__tests__/errorMiddleware.js
+++ b/src/client/helpers/__tests__/errorMiddleware.js
@@ -44,6 +44,10 @@ describe('parseBlockChainError', () => {
     expected =
       'Your voting power is too small, please accumulate more voting power or steem power.';
     expect(actual).toEqual(expected);
+
+    actual = parseBlockChainError('Cannot increase payout within last twelve hours before payout.');
+    expected = "You can't increase payout within last twelve hours before payout.";
+    expect(actual).toEqual(expected);
   });
 
   it('should extract message from unknown error', () => {