Fix coupon update code check
Merge pull request #911 from lovenunu/fix-coupon

Fix coupon update code check