Fix exchange rate display
This commit is contained in:
parent
c6322b49c4
commit
1a55f7da6c
2
core.lua
2
core.lua
|
@ -154,7 +154,7 @@ local function sync()
|
||||||
|
|
||||||
-- Only set lurkcoin.exchange_rate once
|
-- Only set lurkcoin.exchange_rate once
|
||||||
if not exchange_rate_set then
|
if not exchange_rate_set then
|
||||||
get('exchange_rates', {source = lurkcoin.server_name, target = '',
|
get('exchange_rates', {source = '', target = lurkcoin.server_name,
|
||||||
amount = 1}, function(res)
|
amount = 1}, function(res)
|
||||||
if res.success and type(res.result) == 'number' then
|
if res.success and type(res.result) == 'number' then
|
||||||
lurkcoin.exchange_rate = res.result
|
lurkcoin.exchange_rate = res.result
|
||||||
|
|
Loading…
Reference in New Issue