diff --git a/js/gateio.js b/js/gateio.js
index <HASH>..<HASH> 100644
--- a/js/gateio.js
+++ b/js/gateio.js
@@ -277,7 +277,7 @@ module.exports = class gateio extends Exchange {
         let address = undefined;
         if ('addr' in response)
             address = this.safeString (response, 'addr');
-        if ((typeof address !== 'undefined') && (address.indexOf ('address') > 0))
+        if ((typeof address !== 'undefined') && (address.indexOf ('address') >= 0))
             throw new InvalidAddress (this.id + ' queryDepositAddress ' + address);
         return {
             'currency': currency,
made transpiler happy #<I>