Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 240b89d

Browse files
author
Jeff
committed
Releasing v0.5.2.
1 parent ed88b2a commit 240b89d

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

setup/populate.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function addKeysAndStartScript() {
5757
}
5858
else {
5959
console.log('\nYou entered invalid keys format!');
60-
process.exit(0);
60+
process.exit(1);
6161
}
6262
})
6363
})
@@ -97,14 +97,14 @@ async function scriptStart (publishKey, subscribeKey) {
9797
else if (status.statusCode === 403) { //objects are not enabled for the subscribe key
9898
console.log(`\n${status.errorData.error.message}`);
9999
console.log('Please enable objects in your PubNub dashboard to proceed.');
100-
process.exit(0);
100+
process.exit(1);
101101
}
102102
else {
103103
console.log(`\ncreateUser ${item.id} error:`, status.errorData ? (
104104
console.log('\nSubscribe key that you entered is invalid!'),
105105
//reset keys in case of invalid format
106106
fs.writeFile(CONFIG_FILE, JSON.stringify({"publishKey": "", "subscribeKey": ""}), () => {
107-
process.exit(0) //Early exit
107+
process.exit(1) //Early exit
108108
})
109109
) : status.message);
110110
reject()

src/features/authentication/Login/Login.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const Login = () => {
3535
<Wrapper>
3636
<Body>
3737
<Button onClick={loginWithRandomlyPickedUser}>
38-
{loggingIn ? "Logging In" : "Log in"}
38+
{loggingIn ? "Connecting" : "Connect"}
3939
</Button>
4040
<PoweredByPubNub>
4141
<PoweredBy>Powered By</PoweredBy>

src/features/conversationMembers/ConversationMembers/ConversationMembers.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@ export const getCurrentConversationMembers = createSelector(
4747
? conversationMemberships[conversationId].map(user => {
4848
return {
4949
...users[user.id],
50-
presence:
51-
presence.occupants.filter(occupant => {
52-
return occupant.uuid === user.id;
53-
}).length > 0
50+
presence: presence
51+
? presence.occupants.filter(occupant => {
52+
return occupant.uuid === user.id;
53+
}).length > 0
54+
: false
5455
};
5556
})
5657
: [];

0 commit comments

Comments
 (0)