From 25de8ee90a0b20e865434b381fe6a5b43a713274 Mon Sep 17 00:00:00 2001 From: John Knox Date: Mon, 16 Sep 2019 09:02:06 -0700 Subject: [PATCH] If sdk_version is missing, consider it old in server.tsx Summary: Just noticed this. There are probably not many version 0's around, but if there are they should be treated as old. Reviewed By: passy Differential Revision: D17397155 fbshipit-source-id: fab6f8b2557ecb983441b282ceb29b5b744ae900 --- src/server.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.tsx b/src/server.tsx index 7576087e1..2c7984a6e 100644 --- a/src/server.tsx +++ b/src/server.tsx @@ -318,7 +318,7 @@ class Server extends EventEmitter { // section because it refers to the name given by client which is not fixed // for android emulators, so it is indicated as outdated so that developers // might want to update SDK to get rid of this connection swap problem - if (query.sdk_version && query.sdk_version < 3) { + if (!query.sdk_version || query.sdk_version < 3) { query.app += ' (Outdated SDK)'; }