Bugfix: Fix copy in agent availability status (#466)
Copy update for agent status
This commit is contained in:
parent
83b0bb4062
commit
607fc25723
3 changed files with 3 additions and 4 deletions
|
@ -10,7 +10,7 @@ describe('#getAvailableAgentsText', () => {
|
|||
it('returns the correct text is there are two online agents', () => {
|
||||
expect(
|
||||
getAvailableAgentsText([{ name: 'Pranav' }, { name: 'Nithin' }])
|
||||
).toEqual('Pranav and Nithin is available');
|
||||
).toEqual('Pranav and Nithin are available');
|
||||
});
|
||||
|
||||
it('returns the correct text is there are more than two online agents', () => {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable import/prefer-default-export */
|
||||
export const isEmptyObject = obj =>
|
||||
Object.keys(obj).length === 0 && obj.constructor === Object;
|
||||
|
||||
|
@ -28,7 +27,7 @@ export const getAvailableAgentsText = (agents = []) => {
|
|||
|
||||
if (count === 2) {
|
||||
const [first, second] = agents;
|
||||
return `${first.name} and ${second.name} is available`;
|
||||
return `${first.name} and ${second.name} are available`;
|
||||
}
|
||||
|
||||
const [agent] = agents;
|
||||
|
|
|
@ -4,5 +4,5 @@ $twitter = Twitty::Facade.new do |config|
|
|||
config.access_token = ENV.fetch('TWITTER_ACCESS_TOKEN', nil)
|
||||
config.access_token_secret = ENV.fetch('TWITTER_ACCESS_TOKEN_SECRET', nil)
|
||||
config.base_url = 'https://api.twitter.com'
|
||||
config.environment = 'chatwootstaging'
|
||||
config.environment = ENV.fetch('TWITTER_ENVIRONMENT', '')
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue