From 218ba8e8ca1ee1970cb96939ec2108eb176d588b Mon Sep 17 00:00:00 2001 From: Dan Lipert Date: Thu, 18 Apr 2019 02:29:04 +0900 Subject: [PATCH] fix test and style --- app/assets/v2/js/shared.js | 2 +- app/marketing/tests/management/commands/test_expiration_tip.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/v2/js/shared.js b/app/assets/v2/js/shared.js index e17cb14a909..d53dc6e78e7 100644 --- a/app/assets/v2/js/shared.js +++ b/app/assets/v2/js/shared.js @@ -1556,7 +1556,7 @@ function check_balance_and_alert_user_if_not_enough( amount, msg = 'You do not have enough tokens to perform this action.') { - if (tokenAddress == "0x0" || tokenAddress == "0x0000000000000000000000000000000000000000") { + if (tokenAddress == '0x0' || tokenAddress == '0x0000000000000000000000000000000000000000') { return; } diff --git a/app/marketing/tests/management/commands/test_expiration_tip.py b/app/marketing/tests/management/commands/test_expiration_tip.py index a26ab2f11f0..086c1e61e2d 100644 --- a/app/marketing/tests/management/commands/test_expiration_tip.py +++ b/app/marketing/tests/management/commands/test_expiration_tip.py @@ -33,6 +33,7 @@ class TestExpirationTip(TestCase): def setUp(self): self.tip = Tip.objects.create( emails=['john@bar.com'], + primary_email=['john@bar.com'], tokenName='USDT', amount=7, username='john',