Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9f64ed8

Browse files
authored
Fix notification bug (#88)
* fix notification bug * add discord server links * change name to forum Co-authored-by: Ram <ram2091999@users.noreply.github.com>
1 parent d47ff8e commit 9f64ed8

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"react-bootstrap": "^0.32.4",
153153
"react-country-flag": "^1.0.1",
154154
"react-dom": "^16.5.2",
155-
"react-flags-select": "2.1.2",
155+
"react-flags-select": "^2.1.2",
156156
"react-ga": "^2.7.0",
157157
"react-google-recaptcha": "^1.0.5",
158158
"react-joyride": "^2.2.1",

src/app/components/Notification/index.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,13 @@ export class Notification extends React.Component<
3636

3737
public render() {
3838
const { activeNotificationTab, tabType } = this.state;
39-
const { announcements, notifications, deleteNotificationType, deleteNotification } = this.props;
39+
const { announcements, deleteNotificationType, deleteNotification } = this.props;
4040
// let r :Array<NotificationInterfaces.Notification>=[];
41+
let { notifications } = this.props;
42+
if (!Array.isArray(notifications)) {
43+
notifications = [];
44+
}
45+
4146
const activeNotifications = notifications.filter((notification) => {
4247
switch (activeNotificationTab) {
4348
case NotificationInterfaces.NotificationTabType.ALL: {

src/app/components/PopUpMenu.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default class PopUpMenu extends React.Component<{}, ElementOwnProps> {
6060
</a>
6161

6262
<a
63-
href="https://forum.pragyan.org/t/code-character-frequently-asked-questions/21"
63+
href="https://discord.gg/fgT7ejYk"
6464
target="_blank"
6565
>
6666
<div className={classnames(styles['menu-item'], styles['menu-item-discourse'])}>

src/app/components/ReactTour.tsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,10 @@ const tourConfig: ReactourStep[] = [
164164
<div>
165165
<h6>Quest</h6>
166166
<p className={classnames(styles['step-description'])}>
167-
With the help of Quest mode, you can learn the game from absolute
168-
scratch.
167+
With the help of Quest mode, you can learn the game from absolute scratch.
169168
<br />
170-
There are various levels of increasing difficulty. Each level has a 3 star rating,
171-
which lets you know how competitive your code was against that particular bot.
169+
There are various levels of increasing difficulty. Each level has a 3 star rating, which
170+
lets you know how competitive your code was against that particular bot.
172171
</p>
173172
</div>
174173
),

src/app/components/home/LandingPage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class LandingPage extends React.Component<LandingPageInterfaces.Props, {}
8282
<p>
8383
In case of any queries, discuss at the{' '}
8484
<a
85-
href="https://forum.pragyan.org/t/code-character-frequently-asked-questions/21"
85+
href="https://discord.gg/fgT7ejYk"
8686
target="_blank"
8787
>
8888
CodeCharacter Forum

0 commit comments

Comments
 (0)