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', () => {
|
it('returns the correct text is there are two online agents', () => {
|
||||||
expect(
|
expect(
|
||||||
getAvailableAgentsText([{ name: 'Pranav' }, { name: 'Nithin' }])
|
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', () => {
|
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 =>
|
export const isEmptyObject = obj =>
|
||||||
Object.keys(obj).length === 0 && obj.constructor === Object;
|
Object.keys(obj).length === 0 && obj.constructor === Object;
|
||||||
|
|
||||||
|
@ -28,7 +27,7 @@ export const getAvailableAgentsText = (agents = []) => {
|
||||||
|
|
||||||
if (count === 2) {
|
if (count === 2) {
|
||||||
const [first, second] = agents;
|
const [first, second] = agents;
|
||||||
return `${first.name} and ${second.name} is available`;
|
return `${first.name} and ${second.name} are available`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const [agent] = agents;
|
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 = ENV.fetch('TWITTER_ACCESS_TOKEN', nil)
|
||||||
config.access_token_secret = ENV.fetch('TWITTER_ACCESS_TOKEN_SECRET', nil)
|
config.access_token_secret = ENV.fetch('TWITTER_ACCESS_TOKEN_SECRET', nil)
|
||||||
config.base_url = 'https://api.twitter.com'
|
config.base_url = 'https://api.twitter.com'
|
||||||
config.environment = 'chatwootstaging'
|
config.environment = ENV.fetch('TWITTER_ENVIRONMENT', '')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue