Skip to content

Commit

Permalink
chore: added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ameerul-deriv committed Jan 27, 2023
1 parent 1576344 commit 83279c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/p2p/src/stores/general-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ export default class GeneralStore extends BaseStore {
const server_time = this.props.server_time.get();
const blocked_until_moment = toMoment(blocked_until);

// Need isAfter instead of setTimeout as setTimeout has a max delay of 24.8 days
if (server_time.isAfter(blocked_until_moment)) this.setUserBlockedUntil(null);
}
}
Expand Down

0 comments on commit 83279c4

Please sign in to comment.