Skip to content

Commit 0dd0421

Browse files
committed
Rebase with master
1 parent 4385e64 commit 0dd0421

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/app/components/SocketHandler.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,17 @@ export const SocketHandler = (props: SocketHandlerInterfaces.Props) => {
5555
});
5656

5757
socket.on('Compile Error Log', (log: string) => {
58-
addToast('Compile Error', { appearance: 'error', autoDismiss: true }), sendCompileError(log);
58+
addToast('Compile Error', { appearance: 'error', autoDismiss: true });
59+
sendCompileError(log);
5960
});
6061

6162
socket.on('Match Info', (message: string) => {
6263
addToast(message, { appearance: 'info', autoDismiss: true });
6364
});
6465

6566
socket.on('Match Error', (message: string) => {
66-
addToast(message, { appearance: 'error', autoDismiss: true }), sendExecuteError(message);
67+
addToast(message, { appearance: 'error', autoDismiss: true });
68+
sendExecuteError(message);
6769
});
6870

6971
socket.on('Match Result Success', (result: string) => {

src/app/reducers/Notification.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { NotificationActions } from 'app/actions';
22
import * as NotificationInterfaces from 'app/types/Notification';
33

4-
// @ts-ignore
5-
64
const notificationInitialState: NotificationInterfaces.NotificationStoreState = {
75
loading: false,
86
notifications: [],
@@ -14,17 +12,14 @@ export const notificationReducer = (
1412
) => {
1513
switch (action.type) {
1614
case NotificationActions.Type.INFO: {
17-
// addToast(action.payload.message, { appearance: 'info' });
1815
return state;
1916
}
2017

2118
case NotificationActions.Type.SUCCESS: {
22-
// addToast(action.payload.message, { appearance: 'success' });
2319
return state;
2420
}
2521

2622
case NotificationActions.Type.ERROR: {
27-
// addToast(action.payload.message, { appearance: 'error' });
2823
return state;
2924
}
3025

0 commit comments

Comments
 (0)