From c607610016a8db80e741e2af6d2f434a2e0649f3 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 5 May 2017 14:09:06 +0000 Subject: [PATCH] Mneh --- commands/random/currency.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/random/currency.js b/commands/random/currency.js index 1dfa0ed6..716f7429 100644 --- a/commands/random/currency.js +++ b/commands/random/currency.js @@ -16,7 +16,7 @@ module.exports = class CurrencyCommand extends Command { prompt: 'What currency code do you want to use as the base?', type: 'string', validate: base => { - if(codes[base.toUpperCase()]) + if(codes.includes(base.toUpperCase())) return true; return `${base} is not a valid currency code. Use \`help currency\` to view a list of codes.`; }, @@ -27,7 +27,7 @@ module.exports = class CurrencyCommand extends Command { prompt: 'What currency code do you want to convert to?', type: 'string', validate: to => { - if(codes[to.toUpperCase()]) + if(codes.includes(to.toUpperCase())) return true; return `${to} is not a valid currency code. Use \`help currency\` to view a list of codes.`; },