From 24f4dc38b9461f2d54a20e380e9b165c1c539fdf Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Fri, 6 Mar 2020 20:01:35 -0500 Subject: fix typo --- public/face.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/face.js') diff --git a/public/face.js b/public/face.js index 11cb309..cddbefa 100644 --- a/public/face.js +++ b/public/face.js @@ -6,7 +6,7 @@ jQuery(function($) { var DATA_URL = './current.json'; function to_percent(ask) { - return Math.round((r.ask - BASE_PRICE) / BASE_PRICE * 10000) / 100.0; + return Math.round((ask - BASE_PRICE) / BASE_PRICE * 10000) / 100.0; } /** @@ -195,7 +195,7 @@ jQuery(function($) { $.ajax({ method: 'GET', url: DATA_URL, - dataType: 'json' + dataType: 'json', }).fail(function(r) { alert("Couldn't fetch current data."); }).done(function(r) { -- cgit v1.2.3