lib/ayadn/switch.rb in ayadn-1.2.6 vs lib/ayadn/switch.rb in ayadn-1.2.7

- old
+ new

@@ -28,10 +28,10 @@ if user.empty? || user.nil? puts "\n\nOops, something went wrong, I couldn't get your username. Please try again.\n\n".color(:red) exit end #puts "\e[H\e[2J" - username = Workers.remove_arobase_if_present(user.first) + username = Workers.remove_arobase_if_present([user.first])[0] home_path = Dir.home + "/ayadn" if File.exist?("#{home_path}/accounts.db") accounts_db = Databases.init("#{home_path}/accounts.db") active = accounts_db['ACTIVE'] if username == accounts_db[active][:username]