[atlas/master] Correctly display contact if undefined.

commit bb8721ba6ab1f208ebd8cd9e0c3457943ea17b1b Author: Karsten Loesing <karsten.loesing@gmx.net> Date: Wed Jul 17 12:39:15 2013 +0200 Correctly display contact if undefined. Previously, we'd display the contact of the previously shown relay. Fixes #9281. --- js/models/relay.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/models/relay.js b/js/models/relay.js index e1e74fb..ab48b74 100644 --- a/js/models/relay.js +++ b/js/models/relay.js @@ -135,6 +135,7 @@ define([ if (data.relays.length >= 1) { var relay = data.relays[0]; //console.log(data); + relay.contact = relay.contact ? relay.contact : 'undefined'; relay.bandwidth = relay.advertised_bandwidth ? relay.advertised_bandwidth : null; relay.bandwidth_hr = relay.advertised_bandwidth ? hrBandwidth(relay.advertised_bandwidth) : null; relay.family = relay.family ? relay.family : null;
participants (1)
-
karsten@torproject.org