Skip to content

Commit

Permalink
make error message stay longer: 5s
Browse files Browse the repository at this point in the history
  • Loading branch information
hchiam committed Sep 29, 2020
1 parent 60a4f56 commit fa608a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mafia-react/src/pages/GameRoom.tsx
Expand Up @@ -92,7 +92,7 @@ export const GameRoom = (props: Props) => {
refetchInterval: 2000,
},
);
function showErrorMessage(message: string, delayToHide: number = 2000) {
function showErrorMessage(message: string, delayToHide: number = 5000) {
setErrorMessage(message);
setTimeout(() => {
setErrorMessage('');
Expand Down

0 comments on commit fa608a3

Please sign in to comment.