Skip to content

Commit 6353e77

Browse files
authored
Update Clear button logic to include message check
1 parent 5785f3e commit 6353e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebSocket.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ viewModel m =
196196
[ class_ "btn btn-primary"
197197
, onClick Clear
198198
]
199-
(null (m ^. received))
199+
(null (m ^. received) || not (MS.null (m ^. msg)))
200200
[ disabled_ ]
201201
["Clear"]
202202
]

0 commit comments

Comments
 (0)