mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 22:30:41 +08:00
Add custom eslint rule
Adding a custom Radicle ESLint rule to enforce one (1) space after a unary logical NOT (`!`) Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
|
||||
async function isAbleToWithdraw(amount: string): Promise<[boolean, string?]> {
|
||||
try {
|
||||
if (!$session) { return [false]; }
|
||||
if (! $session) { return [false]; }
|
||||
if (!amount || amount === "0") { return [false, "Not able to withdraw zero tokens"]; }
|
||||
if (toWei(amount).gt(maxWithdrawAmount)) return [false, `Reduce amount, max withdrawal is ${formatEther(maxWithdrawAmount)}`];
|
||||
let currentTime = new Date().getTime();
|
||||
|
||||
Reference in New Issue
Block a user